TX Text Control .NET for WPF

ComparisonValueType Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a value of type ComparisonValueTypes that determines how the condition's comparison value is interpreted. The returned value depends on the type of the condition's FormField, the set comparison value and/or the textComparisonFlag or itemComparisonFlag parameter that were specified on invoking an instance of the Condition class.

Syntax

public Condition.ComparisonValueTypes ComparisonValueType { get; }

Examples

The following example builds a rule around an approval check box in a fillable form by using Condition.ComparisonValueType.

CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Condition condition = new(approvalField, true);

Console.WriteLine($"Comparison Value Type: {condition.ComparisonValueType}");
Console.WriteLine("Condition is ready for use.");

Limitations

Read only.