[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.Color

Color Property

Color

Returns the IColorFormat object that represents the specified foreground color.

Use the returned IColorFormat to inspect or modify the color used by the current fill.

Declaration
IColorFormat Color { get; }
ReadOnly Property Color As IColorFormat
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.Solid();
IColorFormat color = fillFormat.Color;
color.RGB = Color.Blue;