FormatCondition.ValueRule Property
Specifies the rule for conditional formatting. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
#Declaration
public ConditionRule ValueRule { get; set; }
#Property Value
Type | Description |
---|---|
Condition |
A Condition |
Available values:
Name | Description |
---|---|
None | The style is not applied to any cell. |
Equal | The style is applied to cells whose values match the Format |
Not |
The style is applied to cells whose values do not match the Format |
Between | The style is applied to cells whose values fall into the range specified by the Format |
Not |
The style is applied to cells whose values fall outside of the range specified by the Format |
Less | The style is applied to cells whose values are less than that specified by the Format |
Greater | The style is applied to cells whose values are greater than that specified by the Format |
Greater |
The style is applied to cells whose values are greater or equal to the Format |
Less |
The style is applied to cells whose values are less or equal to the Format |
Expression | The style is applied to cells for which the Format |
#Remarks
The ValueRule property specifies how cell values should be compared to the FormatCondition.Value1 and FormatCondition.Value2 property values in order to determine whether the conditional formatting style should be applied to them.
If the ValueRule property is set to ConditionRule.None, the conditional formatting style is not applied.
To create a custom rule via an expression, set the ValueRule property to ConditionRule.Expression and specify the expression using the FormatConditionBase.Expression property.