[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStop

IGradientStop Interface

Represents a single stop in a gradient.

A gradient stop defines one point in the gradient transition, including its IColorFormat color, position, and transparency. Use GradientStops to access the stops in a gradient fill and adjust each IGradientStop to refine the gradient effect.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IGradientStop
Public Interface IGradientStop
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 50, 50, 120, 60);
shape.Fill.TwoColorGradient(GradientStyle.Horizontal, 1);
IGradientStop gradientStop = shape.Fill.GradientStops[0];
gradientStop.Position = 0.25;
gradientStop.Transparency = 0.2;

Properties

Name Description
Color

Gets the color of the gradient stop.

The returned IColorFormat object represents the color settings for this gradient stop and can be used to inspect or modify the stop color after a gradient is created with TwoColorGradient(GradientStyle, int).

Position

Gets or sets the position of the gradient stop.

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

Transparency

Gets or sets a value that represents the opacity of the gradient fill expressed as a percent.

This value indicates the transparency setting applied at the current gradient stop.