[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStop.Position

Position Property

Position

Gets or sets the position of the gradient stop.

The position determines where this stop is placed within the gradient definition.

Declaration
double Position { get; set; }
Property Position As Double
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
IFillFormat fill = shape.Fill;
fill.TwoColorGradient(GradientStyle.Horizontal, 1);
IGradientStop stop = fill.GradientStops[0];
double position = stop.Position;