[]
Get the index of closest data point that corresponds to the specified point.
public int DataIndexFromPoint(Point pt, int seriesIndex, MeasureOption option, out double distance)
Public Function DataIndexFromPoint(pt As Point, seriesIndex As Integer, [option] As MeasureOption, ByRef distance As Double) As Integer
| Type | Name | Description |
|---|---|---|
| Point | pt | Point in the control coordinates. |
| int | seriesIndex | Index of series. |
| MeasureOption | option | Measure option. |
| double | distance | Distance from the data point to the specified point. |
| Type | Description |
|---|---|
| int | The index of the data point that is closest to the specified point. |