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