Skip to main content
All docs
V24.2

FormatRuleCollection<T, TColumnType>.AddTopRule(TColumnType, AppearanceDefault, Decimal) Method

Applies a format to cells with highest values.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public T AddTopRule(
    TColumnType column,
    AppearanceDefault appearanceDefault,
    decimal rank
)

Parameters

Name Type Description
column TColumnType

A {TColumnType} object that specifies a column (row in a vertical grid) to which the format should be applied.

appearanceDefault DevExpress.Utils.AppearanceDefault

The appearance settings that should be applied to the column (row in a vertical grid). This value is assigned to the Appearance property.

rank Decimal

The number (as an absolute value or a percentage) of cells that should be formatted. This value is assigned to the Rank property.

Returns

Type Description
T

A {T} object that specifies a format.

See Also