[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IColorScaleCriteria.Count

Count Property

Count

Returns an integer value that specifies the number of criteria for a color scale conditional format rule.

The returned value corresponds to the number of IColorScaleCriterion objects in this collection.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:A5"].Value = new object[,] {
    {10}, {20}, {30}, {40}, {50}
};
IColorScale colorScale = worksheet.Range["A1:A5"].FormatConditions
    .AddColorScale(ColorScaleType.ThreeColorScale);
int count = colorScale.ColorScaleCriteria.Count;