IChartCorridors.Item

Syntax

Item(Index: Integer): IChartCorridor;

Parameters

Index - index of corridor in the collection. Numbering starts with zero.

Description

The Item property is used to determine parameters of the specific chart corridor.

Example

Executing the example requires a regular report sheet with a line chart on it. The chart must have corridors specified.

Sub Cor;

Var

ActiveReport: IPrxReport;

Sheet: IPrxSheet;

PrxTable: IPrxTable;

TabSheet: ITabSheet;

C: IChart;

Corridor: IChartCorridors;

Co: IChartCorridor;

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;

Co := Corridor.Item(0);

Co.GradientFill := True;

End Sub Cor;

After executing the example the fill type of a chart corridor is changed to gradient fill, for example:

See also:

IChartCorridors