ComparisonOperator Property
- Namespace
TXTextControl.DocumentServer. DataShaping
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property ComparisonOperator As RelationalOperatorMembers
| Value | Description |
|---|---|
| Equals | The expression values must be equal. |
| NotEqual | The expression values must be not equal. |
| LessThan | Expression 1 is less than expression 2. |
| GreaterThan | Expression 1 is greater than expression 2. |
| GreaterThanOrEqualTo | Expression 1 is greater than or equal to expression 2. |
| LessThanOrEqualTo | Expression 1 is less than or equal to expression 2. |
| IsBlank | The expression must be null or empty. |
| IsNotBlank | The 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}");filterInstruction.ComparisonOperator = TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals
Console.WriteLine($"Comparison Operator used by Filter Instruction: {filterInstruction.ComparisonOperator}")