[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IColorStop.Color

Color Property

Color

Gets or sets the color of this gradient stop.

Use this property to read or change the direct color assigned to a gradient stop.

Declaration
Color Color { get; set; }
Property Color As Color
Examples
IRange range = worksheet.Range["A1"];
range.Interior.Pattern = Pattern.LinearGradient;
IColorStop colorStop = ((ILinearGradient) range.Interior.Gradient).ColorStops[0];
colorStop.Color = Color.Red;
Color color = colorStop.Color;