SerieIndex1: Integer;
The SerieIndex1 property determines index of the first corridor series.
Executing the example requires a regular report sheet with a line chart on it. The chart must contain more than two series.
Sub Cor;
Var
C: IChart;
Corridor: IChartCorridors;
IdC: Integer;
Begin
C := (PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IChart);
Corridor := C.Corridors;
IdC := Corridor.Add(0, 2);
Corridor.Item(IdC).SerieIndex1 := 1;
End Sub Cor;
After executing the example a new corridor is added between the first and the third series. Then the first corridor series will be changed from the first to the second chart series.
See also: