TX Text Control .NET for Windows Forms

CompareTo 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 value the table column content is compared to using the specified comparison operator. If this value can be parsed to a numerical value, a numerical comparison is used internally when possible (i. e. when the table column contains numerical values, too). Otherwise the column content and this value are interpreted as / converted to strings.

Syntax

public object CompareTo { get; set; }

Examples

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

filterInstruction.CompareTo = "Approved";
if (filterInstruction.CompareTo != null)
{
    Console.WriteLine("Filter Instruction: Compare To is available.");
}