PointIndex: Integer;
The property is read-only.
The PointIndex property returns the index of the selected series point. The property returns -1, if a series is clicked, but a point is missed.
Executing the example requires a form, the ChartBox component named ChartBox1 on the form and the UiErAnalyzer component that is a data source. This example is executed after a chart series is clicked.
Sub ChartBox1OnSerieClick(Sender: Object; Args: IChartSerieClickEventArgs);
Var
S: String;
Begin
S := "Point - " + Args.PointIndex.ToString;
WinApplication.InformationBox(S);
End Sub ChartBox1OnSerieClick;
Executing the example displays a message indicating the selected series point.
See also: