TX Text Control .NET for Windows Forms

ComparisonOperators Enumeration

Enumeration|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

Determines the comparison operator that is used to compare the condition's form field value with the specified comparison value or the interpretation of that value. The enumeration contains the following values:

Syntax

public enum Condition.ComparisonOperators

Members

MemberValueDescription
Is1Form field value equals to the specified comparison value or the interpretation of that value.
IsNot2Form field value does not equal to the specified comparison value or the interpretation of that value.
Contains3Form field value contains the specified comparison value.
StartsWith4Form field value starts with the specified comparison value.
EndsWith5Form field value ends with the specified comparison value.
DoesNotContain6Form field value does not contain the specified comparison value.
DoesNotStartWith7Form field value does not start with the specified comparison value.
DoesNotEndWith8Form field value does not end with the specified comparison value.
IsGreaterThan9Form field value is greater than the specified comparison value.
IsGreaterThanOrEqual10Form field value is greater than or equals to the specified comparison value.
IsLessThan11Form field value is less than the specified comparison value.
IsLessThanOrEqual12Form field value is less than or equals to the specified comparison value.

Examples

The following example selects the Is value from the Comparison Operators enumeration and uses it as a documented workflow choice.

Condition.ComparisonOperators value = Condition.ComparisonOperators.Is;
Console.WriteLine($"Using Comparison Operators: {value}");