Clear;
The Clear method is used to clear all corridors of a chart.
To execute this example, there should be a regular report sheet with a bar chart on it. The chart should 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: