[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStops.Count

Count Property

Count

Gets the number of gradient stops in this IGradientStops collection.

Each gradient stop defines a color transition point in a gradient fill or line.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
IFillFormat fill = shape.Fill;
fill.TwoColorGradient(GradientStyle.Horizontal, 1);
IGradientStops stops = fill.GradientStops;
int count = stops.Count;