Skip to main content

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

NameTypeDescription
fieldNamestringField Name
Null or empty string cannot be specified.
valuestringField Value
formatstringFormat
・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

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen 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 FoundExtensionFieldNotFoundExceptionWhen the specified field is not found in the metaclass of this instance
Field Type MismatchExtensionInvalidTypeExceptionWhen the data type of the specified field is not a rich text type
Invalid OperationExtensionInvalidOperationExceptionWhen 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,