TX Text Control .NET Server

MergeField Object

Object|Introduced in 25.0

Description

Represents an MS Word specific MERGEFIELD field. Is used as a parameter for the addMergeField method.

Syntax

TXTextControl.MergeField

Examples

The following example demonstrates TXTextControl.MergeField in a practical document-editing workflow. It represents an MS Word specific MERGEFIELD field. Is used as a parameter for the addMergeField method.

function inspectMergeField(mergeField) {
    console.log("TXTextControl.MergeField object:", mergeField);
}

Members

Properties

PropertyDescription
dateTimeFormatSpecifies a string format which is applied to date / time values. Is equivalent to the MS Word field flag “\​@”.
nameSpecifies the name of the field.
numericFormatSpecifies a string format which is applied to numeric values. Is equivalent to the MS Word field flag “\#”.
preserveFormattingSpecifies whether the field's formatting should be preserved.
textSpecifies the text of the field.
textAfterSpecifies the text of the field that is displayed after the field's text.
textBeforeSpecifies the text of the field that is displayed before the field's text.
textFormatSpecifies the text format of the field. Possible values are defined in TXTextControl.MergeFieldTextFormat.