IModel.SetRichTextFieldValues Method
Namespace: NextDesign.Core
Description
Sets the HTML value to the specified rich text field.
The textValue specification is ignored, and the "text" format value is automatically generated from the htmlValue value and set simultaneously.
Argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field Name Null or empty strings cannot be specified. |
| htmlValue | string | Field's HTML value |
| textValue | string | Field's text value |
Return value
- void
Exceptions
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When null or an empty string is specified for fieldName When the HTML specified for htmlValue does not contain a body tag (however, null or empty strings are allowed.) |
| Field Not Found | ExtensionFieldNotFoundException | When the specified field is not found in this instance's metaclass |
| Field Type Mismatch | ExtensionInvalidTypeException | When the data type of the specified field is not a rich text type |
| Invalid Operation | ExtensionInvalidOperationException | When this is a deleted model or temporary proxy When an unoperable field is specified as the field name - Product line feature assignment field - Fields with the System.Core tag If an invalid field is specified |
Annotation
In V5 and later, to prevent discrepancies between HTML and Text values, the textValue is ignored, and the Text value is automatically generated from the HTML value when the HTML value is set, and set simultaneously.