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

To execute this example, there should be a regular report sheet with a bar chart on it. There should be more than two series in a chart.

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 contains the index of the added corridor.

See also:

IChartCorridors