IChartExternLegend.UseSerieIcon

Syntax

UseSerieIcon: Boolean;

Syntax

UseSerieIcon: System.Boolean;

Description

The UseSerieIcon property enables the user to display a colored square instead of series icons.

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;
    objects: ITabObjects;
Begin
    mb := MetabaseClass.Active;
    rep := mb.ItemById("OBJ42859").Edit As IPrxReport;
    objects := (rep.ActiveSheet As IprxTable).TabSheet.Objects;
    legend := (objects.Item(1)) As IPrxChartLegend;
    chartlegend := legend As IChartExternLegend;
    chartlegend.AddChart(objects.Item(2As IChart);
    chartlegend.UseSerieIcon:= False;  
    (rep As IMetabaseObject).Save;
End Sub Main;

After executing the example color squares are displayed to the left of the legend elements.

See also:

IChartExternLegend