TX Text Control .NET Server

Javascript: TXTextControl.MergeField.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.MergeField.textFormat

Examples

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

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