IModel.SetRichTextField(string,string,string) Method
Namespace: NextDesign.Core
Description
Sets the value to the specified rich text field format.
If "html" format is specified, the value for "text" format is also automatically generated and set simultaneously.
Argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field Name Null or empty string cannot be specified. |
| value | string | Field Value |
| format | string | Format ・Specify "text", "xaml", or "html". (Case insensitive.) ・In versions 5.0 and later, if "text", or "xaml" is specified, nothing is set. |
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 - If an invalid field is specified in a field tagged with System.Core, |