Operator Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets and sets the operator of the field.
Syntax
public IfField.RelationalOperator Operator { get; set; }Public Property [Operator] As IfField.RelationalOperatorMembers
| Value | Description |
|---|---|
| Equals | The expression values must be equal. |
| NotEqual | The expression values must be not equal. |
| LessThan | Expression 1 is less than expression 2. |
| GreaterThan | Expression 1 is greater than expression 2. |
| GreaterThanOrEqualTo | Expression 1 is greater than or equal to expression 2. |
| LessThanOrEqualTo | Expression 1 is less than or equal to expression 2. |
Examples
The following example uses IfField.Operator to configure operator as part of the if field workflow. The configured value is checked before the workflow continues.
ifField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals;
Console.WriteLine($"Operator used by If Field: {ifField.Operator}");ifField.Operator = TXTextControl.DocumentServer.Fields.IfField.RelationalOperator.Equals
Console.WriteLine($"Operator used by If Field: {ifField.Operator}")