IChartExternLegend.ItemSeparator

Fore Syntax

ItemSeparator: String;

Fore.NET Syntax

ItemSeparator: System.String;

Description

The ItemSeparator property enables the user to set text separator for merged elements of external legend.

Fore 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.ItemSeparator:= "||"
    (rep As IMetabaseObject).Save;
End Sub Main;

After executing the example, the text qualifier for the merged elements of the external chart looks as follows: "||".

Fore.NET Example

To execute the example, create a regular report with the Report identifier. The report includes the following objects: a chart and an external legend.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;

...

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    rep: IPrxReport;
    legend: IPrxChartLegend;
    chartlegend: IChartExternLegend;
    objects: ITabObjects;
Begin
    mb := Params.Metabase;
    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 DxChart);
    chartlegend.ItemSeparator:= "||"
    (rep As IMetabaseObject).Save();
    End Sub;

After executing the example, the text qualifier for the merged elements of the external chart looks as follows: "||".

See also:

IChartExternLegend