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.

Syntax

public sealed class IfField : MailMergeFieldAdapter
Public NotInheritable Class IfField
  Inherits MailMergeFieldAdapter

Introduced: 15.0.

Constructors

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

Fields

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

Methods

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

Properties

Property Description
ApplicationField Gets the adapted ApplicationField of the field.
(Inherited from 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 MailMergeFieldAdapter)
Length Gets the number of characters in a text field through its adapter.
(Inherited from MailMergeFieldAdapter)
Operator Gets and sets the operator of the field.
PreserveFormatting Specifies whether the field's formatting should be preserved.
(Inherited from MailMergeFieldAdapter)
Start Gets the first character position (one-based) of the field through its adapter.
(Inherited from 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 MailMergeFieldAdapter)