LogicalOperator Property
- Namespace
TXTextControl.DocumentServer. DataShaping
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the logical operator by which to logically connect a filter instruction to the previous one if a filter consists of a collection of multiple filter instructions. Possible values are listed in the description of the constructor of this class.
Syntax
public LogicalOperator LogicalOperator { get; set; }Public Property LogicalOperator As LogicalOperatorMembers
| Value | Description |
|---|---|
| And | The filter instructions are and-connected. |
| Or | The filter instructions are or-connected. |
Examples
The following example uses FilterInstruction.LogicalOperator to configure logical operator as part of the filter instruction workflow. The configured value is checked before the workflow continues.
filterInstruction.LogicalOperator = TXTextControl.DocumentServer.DataShaping.LogicalOperator.And;
Console.WriteLine($"Logical Operator used by Filter Instruction: {filterInstruction.LogicalOperator}");filterInstruction.LogicalOperator = TXTextControl.DocumentServer.DataShaping.LogicalOperator.And
Console.WriteLine($"Logical Operator used by Filter Instruction: {filterInstruction.LogicalOperator}")