[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabels.Font

Font Property

Font

Gets the IFontFormat object for the data labels.

Use the returned IFontFormat object to read or modify the font applied to the data label text for the series.

Declaration
IFontFormat Font { get; }
ReadOnly Property Font As IFontFormat
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 12},
    {"Feb", 18},
    {"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
IFontFormat font = series.DataLabels.Font;
font.Bold = true;