Back to Devexpress

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

windowsforms-devexpress-dot-xtraeditors-dot-formatrulecollection-2-dot-addtoprule-x28-1-devexpress-dot-utils-dot-appearancedefault-system-dot-decimal-x29.md

latest2.2 KB
Original Source

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

Applies a format to cells with highest values.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public T AddTopRule(
    TColumnType column,
    AppearanceDefault appearanceDefault,
    decimal rank
)
vb
Public Function AddTopRule(
    column As TColumnType,
    appearanceDefault As AppearanceDefault,
    rank As Decimal
) As T

Parameters

NameTypeDescription
columnTColumnType

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

TypeDescription
T

A {T} object that specifies a format.

|

See Also

FormatConditionRuleTopBottom

FormatRuleCollection<T, TColumnType> Class

FormatRuleCollection<T, TColumnType> Members

DevExpress.XtraEditors Namespace