TXTextControl.DocumentServer.Fields.IfField Class

The IfField class implements the MS Word specific IF field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

Introduced: 15.0.

Syntax

[C#]
public sealed class IfField : MailMergeFieldAdapter
[Visual Basic]
Public NotInheritable Class IfField
  Inherits MailMergeFieldAdapter

Constructors

Constructor Description
IfField Overloaded. Initializes a new instance of the IfField class.

Properties

Property Description
ApplicationField Gets the adapted ApplicationField of the field. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)
Expression1 Gets and sets the first expression text that should be compared.
Expression2 Gets and sets the second expression text that should be compared to Expression1.
FalseText Gets and sets the text that should be displayed when the comparison is false.
FieldValue Gets or sets the field's value of the field that has been specified in Expression1.
ID Gets the ID of the specific field through its adapter. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)
Length Gets the number of characters in a text field through its adapter. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)
Operator Gets and sets the operator of the field.
PreserveFormatting Specifies whether the field's formatting should be preserved. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)
Start Gets the first character position (one-based) of the field through its adapter. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)
Text Gets and sets the displayed text of the field.
TrueText Gets and sets the text that should be displayed when the comparison is true.
TypeName Gets the field's type name of the specific field through its adapter. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)

Methods

Method Description
ShowDialog Opens the specific field options dialog box. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)

Fields

Field Description
FieldAdapter.TYPE_NAME Represents the name of the respective field type. (Inherited from DocumentServer.Fields.MailMergeFieldAdapter.)

See Also