[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.Font

Font Property

Font

Gets the IFontFormat object that represents the font settings of the data label.

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

Declaration
IFontFormat Font { get; }
ReadOnly Property Font As IFontFormat
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
IDataLabel dataLabel = series.Points[0].DataLabel;
IFontFormat font = dataLabel.Font;
font.Bold = true;