IChartExternLegend.AxisIcon

Syntax

AxisIcon: ChartLegendAxisIcon;

Description

The AxisIcon property determines whether an icon indicating which axis (primary or secondary) the series is located on is displayed in the legend. The checkbox is used only when an additional axis is available on the chart.

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;
Begin
    mb := MetabaseClass.Active;
    rep := mb.ItemById("OBJ42859").Edit As IPrxReport;
    legend := (rep.ActiveSheet As IprxTable).TabSheet.Objects.Item(1).Extension As IPrxChartLegend;
    chartlegend := legend As IChartExternLegend;
    chartlegend.AxisIcon:= ChartLegendAxisIcon.None;
    items := chartlegend.InternalItems;
    items.Swap(0,3);
    (rep As IMetabaseObject).Save;
End Sub Main;

After executing the example the legend displays the icons that indicate which axis contains the series (primary or secondary).

See also:

IChartExternLegend