IChartExternLegend.SymbolSpace

Fore Syntax

SymbolSpace: Double;

Fore.NET Syntax

SymbolSpace: System.Double;

Description

The SymbolSpace property determines the distance between the icon and the text for the elements of the chart legend.

Comments

The value is specified in millimeters. By default the SymbolSpace value is equal to 2 mm.

To use the SymbolSpace property, set the SymbolSpaceAuto property to False.

Fore Example

To execute this example, create a regular report with a chart and an external legend on the report sheet. A module is to be added to the report and the UserProc procedure is called from this module using the hyperlink. The inspector of module assemblies should contain links to the Chart, Report and Tab system assemblies.

Sub UserProc;
Var
    Chart: IChartExternLegend;
Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(1As IChartExternLegend;
    Chart.SymbolSpaceIntervalAuto := False;
    Chart.SymbolSpaceInterval := 5;
End Sub UserProc;

After executing the example, the distance between the icon and the text of the external legend elements is changed by 5 mm.

Fore.NET Example

To execute this example, create a regular report with a chart and an external legend on the report sheet. The .NET assembly is added to the report to handle report events. The OnBeforeOpenReport event is described in the module of the specified assembly in the EventsClass class. Add links to the Chart and Tab system assemblies.

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

Public Override Sub OnBeforeOpenReport(Report:IPrxReport; Var Cancel:Boolean);
  Var
    Chart: IChartExternLegend;
  Begin
    Cancel := False;
    Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[1As IChartExternLegend;
    Chart.SymbolSpaceIntervalAuto := False;
    Chart.SymbolSpaceInterval := 5;
  End Sub OnBeforeOpenReport;

Opening the report sets the distance of 5 mm between the icon and the text of the external legend elements.

See also:

IChartExternLegend