[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IColorStops.Count

Count Property

Count

Gets the number of gradient stops in the collection.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
IRange range = worksheet.Range["A1"];
range.Interior.Pattern = Pattern.LinearGradient;

ILinearGradient gradient = (ILinearGradient) range.Interior.Gradient;
IColorStops colorStops = gradient.ColorStops;

int count = colorStops.Count;