TX Text Control .NET for Windows Forms

Expression1 Property

Property|Introduced in 20.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public string Expression1 { get; set; }

Examples

The following example uses NextIfField.Expression1 to configure expression1 as part of the next if field workflow. The configured value is checked before the workflow continues.

nextIfField.Expression1 = "Quarterly report";
if (!string.IsNullOrWhiteSpace(nextIfField.Expression1))
{
    Console.WriteLine($"Expression1: {nextIfField.Expression1}");
}