Index: Integer;
This property is read-only.
The Index property returns index of a level line.
This unit is to be connected to the regular report a sheet of which contains the chart. The chart should display level lines.
Sub Custom;
Var
Chart: IChart;
LevelLines: IChartAxisLevelLine;
i: Integer;
Begin
Chart := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IChart;
LevelLines := Chart.AxisY.LevelLines.Item(0);
i := LevelLines.Index;
End Sub Custom;
After executing the example the variable i stores level line index.
See also: