TX Text Control .NET Server

IfField Object

Object|Introduced in 25.0

Description

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

Syntax

TXTextControl.IfField

Examples

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

function inspectIfField(ifField) {
    console.log("TXTextControl.IfField object:", ifField);
}

Members

Properties

PropertyDescription
expression1Specifies the first expression text that should be compared. This property must be a valid field name.
expression2Specifies the second expression text that should be compared to Expression1.
falseTextSpecifies the text that should be displayed when the comparison is false.
operatorSpecifies the comparison operator. Possible values are defined in TXTextControl.RelationalOperator.
preserveFormattingSpecifies whether the field's formatting should be preserved.
textSpecifies the initial text of the field. Let this property be null to use the default text "IF".
trueTextSpecifies the text that should be displayed when the comparison is true.