FormatCondition.ValueRule Property

Specifies the rule for conditional formatting. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public ConditionRule ValueRule { get; set; }
Public Property ValueRule As ConditionRule

Property Value

Type Description
ConditionRule

A ConditionRule enumeration value.

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.

See Also