LogicalConnective Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property LogicalConnective As Condition.LogicalConnectivesExamples
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}");Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim condition As New Condition(approvalField, True)
condition.LogicalConnective = Condition.LogicalConnectives.And
Console.WriteLine($"Logical Connective used by Condition: {condition.LogicalConnective}")