IChartLabel.Font

Syntax

Font: IGxFont;

Description

The Font property determines parameters of font used for data labels.

Example

Executing the example requires a regular report with a chart on the report sheet. A unit is added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Drawing system assemblies.

Sub UserProc;
Var
    Chart: IChart;
    FontLabel: IGxFont;
    FCLabel: IGxColor;
Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
    Chart.Series.DisplayLabels := True;
    FontLabel := New GxFont.Create("Arial Black"153 As GxFontStyle, 3 As GxUnit);
    FCLabel := New GxColor.CreateARGB(255,0,126,255);
    Chart.Series.DefaultLabel.Font := FontLabel;
    Chart.Series.DefaultLabel.FontColor := FCLabel;
End Sub UserProc;

After executing the example, the Arial Black font of the specified style and size is applied to the label text.

See also:

IChartLabel