Skip to main content

IModel.SetRichTextField(string,string,string,string) Method

Namespace: NextDesign.Core

Description

Sets the value to the specified rich text field format.
Also sets the text value to the specified rich text field.

Arguments

NameTypeDescription
fieldNamestringField name
Null or empty string cannot be specified.
valuestringValue of the field
textValuestringText value of the field
formatstringFormat
Specify "xaml" or "html". (Case is not significant.)
In versions V4.0 and later, if "xaml" is specified, 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, HTML is allowed to be null or an empty string).
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Does not match the field typeExtensionInvalidTypeExceptionIf the data type of the specified field is not rich text type
Invalid operationExtensionInvalidOperationExceptionIf this is a deleted model or a temporary proxy
If an inoperable field is specified for the field name
- Product line feature assignment fields
- Fields tagged with System.Core
If an invalid field is specified