[]
Gets the IGradientStop object at the specified index from this collection.
IGradientStop this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IGradientStop
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the gradient stop to retrieve. |
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;