TX Text Control .NET for WPF

LogicalConnective 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 or sets a value of type Condition.LogicalConnectives that describes how the condition is related to the previous condition inside the corresponding ConditionalInstruction.Conditions array. If the condition is the first element of that array, the value of that property is ignored. The default value is LogicalConnectives.And.

Syntax

public Condition.LogicalConnectives LogicalConnective { get; set; }

Examples

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

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

condition.LogicalConnective = Condition.LogicalConnectives.And;
Console.WriteLine($"Logical Connective used by Condition: {condition.LogicalConnective}");