Skip to main content

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, a "text" format value will also be automatically generated and set at the same time.
This will incur some processing overhead. If speed is required, please use SetRichTextFieldValues() instead of this API.

Argument

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
valuestringField value
formatstringFormat
- 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

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf 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 foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass.
Field type does not matchExtensionInvalidTypeExceptionIf the data type of the specified field is not rich text.
Invalid operationExtensionInvalidOperationExceptionIf 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