Skip to main content

IModel.SetRichTextFieldCustomData Method

Namespace: NextDesign.Core

Description

Sets the value to the custom format of the specified rich text field.

The value of the custom format is not displayed in the UI. It can only be obtained and set by the API.

Arguments

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
valuestringValue of the custom data
If null, the data of the specified format will be deleted.
formatstringCustom format name
Case insensitive.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
When null or an empty string is specified for format
When null is specified for value and the specified format does not exist
Field not foundExtensionFieldNotFoundExceptionWhen the specified field is not found in the metaclass of this instance
Does not match the field typeExtensionInvalidTypeExceptionWhen the data type of the specified field is not rich text type
Invalid operationExtensionInvalidOperationExceptionWhen the model itself is a deleted model or a temporary proxy
When an inoperable field is specified for the field name
- Feature assignment field of a product line
- Field with the System.Core tag
When an invalid field is specified