[]
Removes the gradient stop at the specified index.
Use this method to remove a color transition point from the gradient definition.
void Delete(int index)
Sub Delete(index As Integer)
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the gradient stop to remove. |
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
IFillFormat fill = shape.Fill;
fill.TwoColorGradient(GradientStyle.Horizontal, 1);
IGradientStops stops = fill.GradientStops;
stops.Delete(0);