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
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
value | string | Value of the custom data If null, the data of the specified format will be deleted. |
format | string | Custom format name Case insensitive. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When 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 found | ExtensionFieldNotFoundException | When the specified field is not found in the metaclass of this instance |
Does not match the field type | ExtensionInvalidTypeException | When the data type of the specified field is not rich text type |
Invalid operation | ExtensionInvalidOperationException | When 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 |