[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStops.Item

this Property

this[int]

Gets the IGradientStop object at the specified index from this collection.

Declaration
IGradientStop this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IGradientStop
Parameters
Type Name Description
int index

The zero-based index of the gradient stop to retrieve.

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;
IGradientStop stop = stops[0];
double position = stop.Position;