IChartCorridors.Clear

Syntax

Clear;

Description

The Clear method is used to clear all chart corridors.

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;

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;

Corridor.Clear;

End Sub Cor;

After executing the example all corridors are removed from the chart.

See also:

IChartCorridors