NextIfField Class
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.dll
- Inherits
- Field
Adapter - Mail
Merge Field Adapter - Next
If Field
- Field
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 : MailMergeFieldAdapterPublic NotInheritable Class NextIfField
Inherits MailMergeFieldAdapterExamples
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;Dim nextIfField As New TXTextControl.DocumentServer.Fields.NextIfField()
nextIfField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.EqualsMembers
Constructors
| Constructor | Description |
|---|---|
| MailMergeFieldAdapter | Initializes a new instance of the MailMergeFieldAdapter class. (Inherited from MailMergeFieldAdapter.) |
| NextIfField | Initializes a new instance of the NextIfField class. |
Properties
| Property | Description |
|---|---|
| DataSourceCulture | Specifies the culture which is used for the relational comparison of numerical values. The default value for this property is the current thread culture. |
| Expression1 | Gets 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. |
| Expression2 | Gets and sets the second expression text that should be compared to Expression1. |
| FieldValue | Gets or sets the field's value of the field that has been specified in Expression1. |
| MergeCulture | Specifies 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. |
| Operator | Gets and sets the comparison operator the field. |
| PreserveFormatting | Specifies whether the field's formatting should be preserved. (Inherited from MailMergeFieldAdapter.) |
| Result | Gets the evaluation result of the two field expressions and the specified comparison operator. |
Fields
| Field | Description |
|---|---|
| TYPE_NAME | Not described in the reference. public const string TYPE_NAME = "NEXTIF"; |