FormatCondition.ValueRule Property
Specifies the rule for conditional formatting. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(ConditionRule.Expression, Handler = "RaiseChanged")]
public ConditionRule ValueRule { get; set; }
#Property Value
Type | Description |
---|---|
Condition |
A DevExpress. |
Available values:
Name | Description |
---|---|
None | The format is not applied to cells. |
Equal | The format is applied to cells whose values match the Value1 property. |
Not |
The format is applied to cells whose values do not match the Value1 property. |
Between | The format is applied to cells whose values fall into the range specified by the Value1 and Value2 properties. |
Not |
The format is applied to cells whose values fall outside of the range specified by the Value1 and Value2 properties. |
Less | The format is applied to cells whose values are less than the Value1 property. |
Greater | The format is applied to cells whose values are greater than the Value1 property. |
Greater |
The format is applied to cells whose values are greater or equal to the Value1 property. |
Less |
The format is applied to cells whose values are less or equal to the Value1 property. |
Expression | The format is applied to cells that match the specified Expression. |
#Remarks
The ValueRule property specifies how cell values should be compared to the Value1 and Value2 property values in order to determine whether the conditional formatting style should be applied to them.
To create a custom rule via an expression, use the Expression property.