FormatRuleCollection<T, TColumnType>.AddTopBottomRule(TColumnType, AppearanceDefault, FormatConditionTopBottomType, Decimal) Method
Applies a format to cells with highest or lowest values.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public T AddTopBottomRule(
TColumnType column,
AppearanceDefault appearanceDefault,
FormatConditionTopBottomType topBottom,
decimal rank
)
#Parameters
Name | Type | Description |
---|---|---|
column | TColumn |
A {TColumn |
appearance |
DevExpress. |
The appearance settings that should be applied to the column (row in a vertical grid). This value is assigned to the Appearance property. |
top |
Format |
A value that specifies the target range (highest or lowest). This value is assigned to the Top |
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. |