IChartSerieClickEventArgs.PointIndex

Syntax

PointIndex: Integer;

Description

This property is read-only.

The PointIndex property returns the index of the selected series point. The property returns -1, if you click a series, but miss a point.

Example

Executing this example requires an existing form, located in the ChartBox component with the ChartBox1 name and the UiErAnalyzer component (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 this example displays a message indicating the selected series point.

See also:

IChartSerieClickEventArgs