IModel.SetRichTextFieldCustomData method
Namespace: NextDesign.Core
Description
Sets a value in a custom format for the specified rich text field.
Custom formatted values are not displayed on the UI. It can be obtained and set only with the API.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name You cannot specify null or an empty string. |
value | string | The custom data value If null, deletes the data in the specified format. |
format | string | Custom format name Case insensitive. |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | If null or an empty string is specified for fieldName If null or an empty string is specified for format When null is specified for value, the specified format does not exist. if not |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |
Does not match field type | ExtensionInvalidTypeException | If the data type of the specified field is not RichText |
Illegal operation | ExtensionInvalidOperationException | If the model itself is a deleted model or a temporary proxy If a field that cannot be operated is specified for the field name - Product line feature assignment field - System.Core Tagged Field |