New to Telerik Document ProcessingStart a free 30-day trial

TopRule

Class

Conditional formatting rule that applies formatting to cells containing the largest values in a range, by rank or percentage.

Definition

Constructors

Initializes a new TopRule with the specified unit type, rank count, and formatting to apply when the condition is met.

C#
public TopRule(ConditionalFormattingUnit unit, int rank, DifferentialFormatting formatting)
Parameters:unitConditionalFormattingUnitrankintformattingDifferentialFormatting

Properties

Specifies the number or percentage of top values to format, depending on the unit type.

C#
public int Rank { get; set; }

Specifies whether the rank is interpreted as item count or percentage.

C#
public ConditionalFormattingUnit Unit { get; set; }