Get the index of closest data point that corresponds to the specified point.
'Declaration
Public Function DataIndexFromPoint( _
ByVal As Windows.Foundation.Point, _
ByVal As System.Integer, _
ByVal As MeasureOption, _
ByRef As System.Double _
) As System.Integer
public System.int DataIndexFromPoint(
Windows.Foundation.Point ,
System.int ,
MeasureOption ,
out System.double
)
Parameters
- pt
- Point in the control coordinates.
- seriesIndex
- Index of series.
- option
- Measure option.
- distance
- Distance from the data point to the specified point.
Return Value
The index of the data point that is closest to the specified point.