IChartExternLegend.RowInterval

Fore Syntax

RowInterval: Double;

Fore.NET Syntax

RowInterval: System.Double;

Description

The RowInterval property determines the distance between rows of the chart external legend.

Comments

The value is specified in millimeters.

To use the RowInterval property, set the RowIntervalAuto property to False.

Fore Example

Executing the example requires a regular report with a chart and an external legend on the report sheet. A unit is added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies must contain links to the Chart, Report, Tab system assemblies.

Sub UserProc;
Var
    Chart: IChartExternLegend;
Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(1As IChartExternLegend;
    Chart.RowIntervalAuto := False;
    Chart.RowInterval := 10;
End Sub UserProc;

After executing the example the distance between rows of the external legend is changed to 10 mm.

Fore.NET Example

Executing the example requires 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 unit 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.RowIntervalAuto := False;
    Chart.RowInterval := 10;
End Sub OnBeforeOpenReport;

Opening the report sets the distance of 10 mm between rows of the external legend.

See also:

IChartExternLegend