[]
Returns point index and distance to the closest data element of specified series in the group given client coordinates.
public bool CoordToPointIndex(int XCoord, int YCoord, PlotElementEnum element, int SeriesIndex, ref int PointIndex, ref int Distance)
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
| Type | Name | Description |
|---|---|---|
| int | XCoord | X client coordinate. |
| int | YCoord | Y client coordinate. |
| PlotElementEnum | element | Element parameter indicates which plot element is used. |
| int | SeriesIndex | Data series index. |
| int | PointIndex | Data point index of the closest data point. |
| int | Distance | Distance to the closest data point. |
| Type | Description |
|---|---|
| bool | The return value indicates successful calculation. |
Mouse coordinates are given in client coordinates.