Skip to main content

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

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

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
- 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.