Back to Devexpress

ConditionRule Enum

wpf-devexpress-dot-xpf-dot-core-dot-conditionalformatting-9d1809b3.md

latest4.2 KB
Original Source

ConditionRule Enum

Lists the values that specify the conditional formatting rule.

Namespace : DevExpress.Xpf.Core.ConditionalFormatting

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public enum ConditionRule
vb
Public Enum ConditionRule

Members

NameDescription
None

The style is not applied to any cell.

| | Equal |

The style is applied to cells whose values match the FormatCondition.Value1 (FormatCondition.Value1) property value.

| | NotEqual |

The style is applied to cells whose values do not match the FormatCondition.Value1 (FormatCondition.Value1) property value.

| | Between |

The style is applied to cells whose values fall into the range specified by the FormatCondition.Value1 (FormatCondition.Value1) and FormatCondition.Value2 (FormatCondition.Value2) properties.

| | NotBetween |

The style is applied to cells whose values fall outside of the range specified by the FormatCondition.Value1 (FormatCondition.Value1) and FormatCondition.Value2 (FormatCondition.Value2) properties.

| | Less |

The style is applied to cells whose values are less than that specified by the FormatCondition.Value1 (FormatCondition.Value1) property.

| | Greater |

The style is applied to cells whose values are greater than that specified by the FormatCondition.Value1 (FormatCondition.Value1) property.

| | GreaterOrEqual |

The style is applied to cells whose values are greater or equal to the FormatCondition.Value1 (FormatCondition.Value1) property value.

| | LessOrEqual |

The style is applied to cells whose values are less or equal to the FormatCondition.Value1 (FormatCondition.Value1) property value.

| | Expression |

The style is applied to cells for which the FormatConditionBase.Expression (FormatConditionBase.Expression) evaluates to true.

|

The following properties accept/return ConditionRule values:

Remarks

The values listed by the ConditionRule enumeration are used to set the FormatCondition.ValueRule and FormatCondition.ValueRule properties.

To learn more, see Conditional Formatting in Pivot Grid and Conditional Formatting in Grid Control.

See Also

DevExpress.Xpf.Core.ConditionalFormatting Namespace