IModel.SetRichTextField(string,string,string,string) Method
Namespace: NextDesign.Core
Description
Sets the format value of the specified rich text field.
The textValue specification is ignored, and the "text" format value is automatically generated and set simultaneously.
Argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field Name Null or empty string cannot be specified. |
| value | string | Field Value |
| textValue | string | Field Text Value |
| format | string | Format Specify "xaml" or "html". (Case insensitive.) In versions 4.0 and later, nothing is set if "xaml" is specified. In versions 5.0 and later, specifying "text" will not set anything. |
Return value
- void
Exceptions
| 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 the specified format does not exist When "html" is specified for format and the HTML specified for value does not contain a body tag (however, cases where HTML is null or an empty string are allowed.) |
| Field Not Found | ExtensionFieldNotFoundException | When the specified field is not found in the metaclass of this instance |
| 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 for 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.