Skip to main content

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
ConditionRule

A DevExpress.WinUI.Grid.ConditionRule enumeration value.

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.

NotEqual

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.

NotBetween

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.

GreaterOrEqual

The format is applied to cells whose values are greater or equal to the Value1 property.

LessOrEqual

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.

See Also