IChartCorridors.Add

Syntax

Add(SerieIdx1: Integer; SerieIdx2: Integer): Integer;

Parameters

SerieIdx1 - index of the first series of a corridor.

SerieIdx2 - index of the second series of a corridor.

Description

The Add property adds a new corridor to a chart and returns its collection index.

Example

Executing the example requires a regular report sheet with a line chart on it. The chart must contain more than two series.

Sub Corridors;

Var

ActiveReport: IPrxReport;

Sheet: IPrxSheet;

PrxTable: IPrxTable;

TabSheet: ITabSheet;

C: IChart;

Corridor: IChartCorridors;

IdC: Integer;

Begin

ActiveReport := PrxReport.ActiveReport;

Sheet := ActiveReport.Sheets.Item(0);

PrxTable := Sheet As IPrxTable;

TabSheet := PrxTable.TabSheet;

C := TabSheet.Objects.Item(0).Extension As IChart;

Corridor := C.Corridors;

IdC := Corridor.Add(0, 2);

End Sub Corridors;

After executing the example a new corridor is added between the first and the third series. The IdC variable stores the index of the added corridor.

See also:

IChartCorridors