Count: Integer;
The property is read-only.
The Count property returns the current number of chart corridors.
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
ActiveReport: IPrxReport;
Sheet: IPrxSheet;
PrxTable: IPrxTable;
TabSheet: ITabSheet;
C: IChart;
Corridor: IChartCorridors;
I: 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;
I := Corridor.Count
End Sub Cor;
After executing the example the I variable stores the number of chart corridors.
See also: