IModel.SetRichTextField(string,string,string) Method
Namespace: NextDesign.Core
Description
Sets the value in the specified rich text field format.
If the "html" format is specified, the value in the "text" format is also automatically generated and set at the same time.
In that case, there will be a slight overhead in the processing time. If speed performance is required, please use SetRichTextFieldValues() instead of this API.
Argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
value | string | Field value |
format | string | Format - Specify "text", "xaml", or "html". (Case is not significant.) - In versions V4.0 and later, if you specify "xaml", nothing will be set. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for fieldName If null or an empty string is specified for format If the specified format does not exist If "html" is specified for format and the HTML specified for value does not contain a body tag (however, HTML is allowed to be null or an empty string). |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |
Does not match the field type | ExtensionInvalidTypeException | If the data type of the specified field is not rich text type |
Invalid operation | ExtensionInvalidOperationException | If this is a deleted model or a temporary proxy If an inoperable field is specified for the field name - Product line feature assignment fields - Fields tagged with System.Core If an invalid field is specified |