ExcludedOperator Enumeration
Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common.Models
Summary
This enumeration defines operators that should be excluded from use in rule conditions within the editor. See the description of the Control.ExcludedOperators property for details.
Syntax
public enum ExcludedOperator
{
// Exclude the Equal operator
Equal = 1 << 0,
// Exclude the NotEqual operator
NotEqual = 1 << 1,
// Exclude the Less operator
Less = 1 << 2,
// Exclude the LessOrEqual operator
LessOrEqual = 1 << 3,
// Exclude the Greater operator
Greater = 1 << 4,
// Exclude the GreaterOrEqual operator
GreaterOrEqual = 1 << 5,
// Exclude the Contains operator
Contains = 1 << 6,
// Exclude the DoesNotContain operator
DoesNotContain = 1 << 7,
// Exclude the EndsWith operator
EndsWith = 1 << 8,
// Exclude the DoesNotEndWith operator
DoesNotEndWith = 1 << 9,
// Exclude the StartsWith operator
StartsWith = 1 << 10,
// Exclude the DoesNotStartWith operator
DoesNotStartWith = 1 << 11,
// Exclude the IsNull operator
IsNull = 1 << 12,
// Exclude the IsNotNull operator
IsNotNull = 1 << 13,
// Exclude the Between operator
Between = 1 << 14,
// Exclude the In operator
In = 1 << 15,
// Exclude the NotIn operator
NotIn = 1 << 16,
// Exclude the Count operator of value collections
Count = 1 << 17,
// Exclude the NotBetween operator
NotBetween = 1 << 18
}
The enumeration is a set of flags: combine members with the | operator to exclude several operators at once. Pair the value with a DataType in an Operator object.
Example
control.ExcludedOperators.Add(new Operator
{
Type = DataType.String,
ExcludedOperator = ExcludedOperator.StartsWith | ExcludedOperator.EndsWith
});