Returns series index and distance to the closest data element in the group given client coordinates.

Namespace:  C1.Win.C1Chart
Assembly:  C1.Win.C1Chart.2 (in C1.Win.C1Chart.2.dll)

Syntax

C#
public bool CoordToSeriesIndex(
	int XCoord,
	int YCoord,
	PlotElementEnum element,
	ref int SeriesIndex,
	ref int Distance
)
Visual Basic
Public Function CoordToSeriesIndex ( _
	XCoord As Integer, _
	YCoord As Integer, _
	element As PlotElementEnum, _
	ByRef SeriesIndex As Integer, _
	ByRef Distance As Integer _
) As Boolean

Parameters

XCoord
Type: System..::..Int32
X client coordinate.
YCoord
Type: System..::..Int32
Y client coordinate.
element
Type: C1.Win.C1Chart..::..PlotElementEnum
Element parameter indicates which plot element is used.
SeriesIndex
Type: System..::..Int32%
Data series index.
Distance
Type: System..::..Int32%
Distance to the closest data point.

Return Value

The return value indicates successful calculation.

Remarks

Mouse coordinates are given in client coordinates.

See Also