IChartExternLegend.Font

Syntax

Font: IGxFont;

Description

The Font property determines text font for external chart legend.

Example

Executing the example requires a regular report with the Report identifier. The report includes the following objects:  a chart and an external legend.

Sub Main;
Var
    mb: IMetabase;
    rep: IPrxReport;
    legend: IPrxChartLegend;
    chartlegend: IChartExternLegend;
    items: IChartExternLegendItems;
    chartF: IGxFont;
Begin
    mb:= MetabaseClass.Active;
    rep := mb.ItemById("OBJ42859").Edit As IPrxReport;
    legend:= ((rep.ActiveSheet As IprxTable).TabSheet.Objects.Item(1)) As IPrxChartLegend;
    chartlegend:= legend As IChartExternLegend;
    chartlegend.AxisIcon:= ChartLegendAxisIcon.Axis;
    chartF:= New GxFont.Create("Arial"8);
    chartlegend.Font:= chartF;
    items:= chartlegend.InternalItems;
    (rep As IMetabaseObject).Save;
End Sub Main;

After executing the example the font parameters of the text of the chart external legend are the following: Arial, 8.

See also:

IChartExternLegend