TX Text Control .NET for Windows Forms

NextIfField Class

Class|Introduced in 20.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FieldAdapter
  2. MailMergeFieldAdapter
  3. NextIfField

Description

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

Syntax

public sealed class NextIfField : MailMergeFieldAdapter

Examples

The following example creates a Next If Field instance and configures its operator setting for a document workflow.

TXTextControl.DocumentServer.Fields.NextIfField nextIfField = new();
nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals;

Members

Constructors

ConstructorDescription
MailMergeFieldAdapterInitializes a new instance of the MailMergeFieldAdapter class. (Inherited from MailMergeFieldAdapter.)
NextIfFieldInitializes a new instance of the NextIfField class.

Properties

PropertyDescription
DataSourceCultureSpecifies the culture which is used for the relational comparison of numerical values. The default value for this property is the current thread culture.
Expression1Gets and sets the first expression text that should be compared. To use this field in the MailMerge component, this property must be a valid field name.
Expression2Gets and sets the second expression text that should be compared to Expression1.
FieldValueGets or sets the field's value of the field that has been specified in Expression1.
MergeCultureSpecifies the culture with which numerical and date / time values are formatted when merged into the target document. The default value for this property is the current thread culture.
OperatorGets and sets the comparison operator the field.
PreserveFormattingSpecifies whether the field's formatting should be preserved. (Inherited from MailMergeFieldAdapter.)
ResultGets the evaluation result of the two field expressions and the specified comparison operator.

Fields

FieldDescription
TYPE_NAMENot described in the reference. public const string TYPE_NAME = "NEXTIF";