Returns point index and distance to the closest data element of specified series in the group given client coordinates.
Namespace:
C1.Win.C1ChartAssembly: C1.Win.C1Chart.2 (in C1.Win.C1Chart.2.dll)
Syntax
C# |
---|
public bool CoordToPointIndex( int XCoord, int YCoord, PlotElementEnum element, int SeriesIndex, ref int PointIndex, ref int Distance ) |
Visual Basic |
---|
Public Function CoordToPointIndex ( _ XCoord As Integer, _ YCoord As Integer, _ element As PlotElementEnum, _ SeriesIndex As Integer, _ ByRef PointIndex 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.
- PointIndex
- Type: System..::..Int32%
Data point index of the closest data point.
- 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.