TX Text Control .NET Server

Javascript: TXTextControl.IncludeTextField.textFormat Property

Property|Introduced in 25.0

Description

Specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.

Syntax

<MergeFieldTextFormat> TXTextControl.IncludeTextField.textFormat

Examples

The following example demonstrates TXTextControl.IncludeTextField.textFormat in a practical document-editing workflow. It specifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.

function inspectTextFormat(includeTextField) {
    const textFormat = includeTextField.textFormat;
    console.log("text format:", textFormat);
}