[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITop10.Percent

Percent Property

Percent

Gets or sets a Boolean value that indicates whether the rank is calculated as a percentage.

When this property returns true, the value specified by Rank is interpreted as a percentage instead of a fixed count.

Declaration
bool Percent { get; set; }
Property Percent As Boolean
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 = 40;
top10.Percent = true;
bool isPercent = top10.Percent;