[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataTable.Font

Font Property

Font

Gets the IFontFormat object for the chart data table.

Use the returned font format to read or modify font settings for the text displayed in the data table.

Declaration
IFontFormat Font { get; }
ReadOnly Property Font As IFontFormat
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["B1:B3"], RowCol.Columns, true, true);
chart.HasDataTable = true;
IFontFormat font = chart.DataTable.Font;
font.Color.RGB = Color.Red;