IModel.SetRichTextField(string,string,string,string) Method
Namespace: NextDesign.Core
Description
Sets the value of the specified rich text field format and also sets the text value.
If the "html" format is specified, the textValue specification is ignored and value is set to the text value.
This API incurs some overhead. If speed is required, use SetRichTextFieldValues() instead.
Argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null and empty strings cannot be specified. |
value | string | Field value |
textValue | string | Field text value |
format | string | Format Specify "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, null or an empty string is allowed). |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass. |
Field type does not match | ExtensionInvalidTypeException | If the data type of the specified field is not rich text. |
Invalid operation | ExtensionInvalidOperationException | If this is a deleted model or temporary proxy. If an inoperable field is specified for the field name. - Product line feature assignment field - Field tagged with System.Core If an invalid field is specified |