[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStops.Delete

Delete Method

Delete(int)

Removes the gradient stop at the specified index.

Use this method to remove a color transition point from the gradient definition.

Declaration
void Delete(int index)
Sub Delete(index As Integer)
Parameters
Type Name Description
int index

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

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;
stops.Delete(0);