[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IGradientStop.Color

Color Property

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).

Declaration
IColorFormat Color { get; }
ReadOnly Property Color As IColorFormat
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];
IColorFormat color = stop.Color;
color.RGB = Color.Red;