Skip to main content

TopBottomRuleFormatCondition.Rule Property

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

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(TopBottomRule.AboveAverage, Handler = "RaiseChanged")]
public TopBottomRule Rule { get; set; }

Property Value

Type Description
TopBottomRule

A DevExpress.WinUI.Grid.TopBottomRule enumeration value.

Available values:

Name Description
TopItems

The format is applied to cells whose values are the highest in the column. The number of cells is specified by the Threshold property.

TopPercent

The format is applied to cells whose values are the highest in the column. The percentage of cells is specified by the Threshold property.

BottomItems

The format is applied to cells whose values are the lowest in the column. The number of cells is specified by the Threshold property.

BottomPercent

The format is applied to cells whose values are the lowest in the column. The percentage of cells is specified by the Threshold property.

AboveAverage

The format is applied to cells whose values are above the average column value.

BelowAverage

The format is applied to cells whose values are below the average column value.

See Also