TX Text Control .NET for Windows Forms

ComparisonOperator Property

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

Description

Gets or sets the relational operator used as the comparison operator. See the description of the constructor of this class for possible values.

Syntax

public RelationalOperator ComparisonOperator { get; set; }

Members

ValueDescription
EqualsThe expression values must be equal.
NotEqualThe expression values must be not equal.
LessThanExpression 1 is less than expression 2.
GreaterThanExpression 1 is greater than expression 2.
GreaterThanOrEqualToExpression 1 is greater than or equal to expression 2.
LessThanOrEqualToExpression 1 is less than or equal to expression 2.
IsBlankThe expression must be null or empty.
IsNotBlankThe expression must not be null or empty.

Examples

The following example uses FilterInstruction.ComparisonOperator to configure comparison operator as part of the filter instruction workflow. The configured value is checked before the workflow continues.

filterInstruction.ComparisonOperator = TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals;
Console.WriteLine($"Comparison Operator used by Filter Instruction: {filterInstruction.ComparisonOperator}");