[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFontFormat.Color

Color Property

Color

Gets the color format.

This property gets the IColorFormat object that represents the color of the text associated with this font format. Use the returned object to read or modify the text color, such as an RGB color or a theme-based color.

Declaration
IColorFormat Color { get; }
ReadOnly Property Color As IColorFormat
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 100},
    {"Feb", 120}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
chart.HasDataTable = true;
IColorFormat colorFormat = chart.DataTable.Font.Color;
colorFormat.RGB = Color.Blue;