[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITop10.Rank

Rank Property

Rank

Gets or sets the rank value for the conditional format rule.

Returns an integer that specifies either the number of ranked items or the percentage value used by the rule, depending on Percent.

Declaration
int Rank { get; set; }
Property Rank As Integer
Examples
worksheet.Range["A1:A5"].Value = new object[,] {{10}, {30}, {20}, {50}, {40}};
ITop10 top10 = worksheet.Range["A1:A5"].FormatConditions.AddTop10();
top10.Interior.Color = Color.Yellow;
top10.Rank = 2;
int rank = top10.Rank;