FormatCondition.ValueRule Property

Specifies the rule for conditional formatting.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v20.1.dll


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

Property Value

Type Description

A ConditionRule object that is a rule formatting based on value.


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 or ConditionRule.Expression, the conditional formatting style is not applied.

To create a custom rule using an expression, set the ValueRule property to ConditionRule.Expression and specify the expression using the FormatConditionBase.Expression property.

See Also