Skip to main content

IModel.SetRichTextFieldValues ​​Method

Namespace: NextDesign.Core

Description

Sets the HTML value to the specified rich text field.
The textValue specification is ignored, and the "text" format value is automatically generated from the htmlValue value and set simultaneously.

Argument

NameTypeDescription
fieldNamestringField Name
Null or empty strings cannot be specified.
htmlValuestringField's HTML value
textValuestringField's text value

Return value

  • void

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
When the HTML specified for htmlValue does not contain a body tag (however, null or empty strings are allowed.)
Field Not FoundExtensionFieldNotFoundExceptionWhen the specified field is not found in this instance's metaclass
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 as 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.