[]
Gets or sets a value that the Value should match.
public ConditionalStyleOperator Operator { get; set; }
Public Property [Operator] As ConditionalStyleOperator
Type | Description |
---|---|
ConditionalStyleOperator | A ConditionalStyleOperator value that the Value should match. |
Different ConditionalStyleOperators need different numbers of operands. If the ConditionalStyleOperator needs one operand, Value1 is used as the only operand to compare to the cell value. If the ConditionalStyleOperator needs two operands, Value1 and Value2 are used together to compare to the cell value.
The following list lists the operators which do not need an operand.
ConditionalStyleOperator.IsNull
ConditionalStyleOperator.IsNotNull
ConditionalStyleOperator.IsEmpty
ConditionalStyleOperator.IsNotEmpty
ConditionalStyleOperator.IsTrue
ConditionalStyleOperator.IsFalse
The following list lists the operators which need one operand.
ConditionalStyleOperator.Equals
ConditionalStyleOperator.NotEquals
ConditionalStyleOperator.GreaterThan
ConditionalStyleOperator.LessThan
ConditionalStyleOperator.GreaterThanOrEquals
ConditionalStyleOperator.LessThanOrEquals
ConditionalStyleOperator.Contains
ConditionalStyleOperator.StartsWith
ConditionalStyleOperator.EndsWith
ConditionalStyleOperator.IsMatch
ConditionalStyleOperator.IsNotMatch
The following list lists the operators which need two operands.
ConditionalStyleOperator.Between
ConditionalStyleOperator.NotBetween
Type | Condition |
---|---|
InvalidEnumArgumentException | The specified value of the operator is not a valid ConditionalStyleOperator value. |