[]
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.
int Count { get; }
ReadOnly Property Count As Integer
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;