Skip to main content
A newer version of this page is available. .

FormatConditionRuleValue.Condition Property

Gets or sets the comparison operator (Equal, Between, Less, etc.).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(FormatCondition.None)]
[XtraSerializableProperty]
[DXCategory("Behavior")]
public FormatCondition Condition { get; set; }

Property Value

Type Default Description
FormatCondition **None**

The comparison operator.

Available values:

Name Description
None

The format is applied to all cells in the target column.

Equal

The format is applied to cells (or corresponding rows) whose values match the FormatConditionRuleValue.Value1 property value.

NotEqual

The format is applied to cells (or corresponding rows) whose values do not match the FormatConditionRuleValue.Value1 property value.

Between

The format is applied to cells (or corresponding rows) whose values fall into the range specified by the FormatConditionRuleValue.Value1 and FormatConditionRuleValue.Value2 properties.

NotBetween

The format is applied to cells (or corresponding rows) whose values fall outside of the range specified by the FormatConditionRuleValue.Value1 and FormatConditionRuleValue.Value2 properties.

Less

The format is applied to cells (or corresponding rows) whose values are less than the FormatConditionRuleValue.Value1 property value.

Greater

The format is applied to cells (or corresponding rows) whose values are greater than the FormatConditionRuleValue.Value1 property value.

GreaterOrEqual

The format is applied to cells (or corresponding rows) whose values are greater or equal to the FormatConditionRuleValue.Value1 property value.

LessOrEqual

The format is applied to cells (or corresponding rows) whose values are less or equal to the FormatConditionRuleValue.Value1 property value.

Expression

The format is applied to cells (or corresponding rows) if the FormatConditionRuleValue.Expression evaluates to true.

Remarks

Use the Condition, FormatConditionRuleValue.Value1 and FormatConditionRuleValue.Value2 properties to create a condition.

If the Condition property is set to None, the format is applied to all cells of the target column.

See Also