Get the index of closest data point that corresponds to the specified point.
Namespace:
C1.Silverlight.ChartAssembly: C1.Silverlight.Chart (in C1.Silverlight.Chart.dll)
Syntax
C# |
---|
public int DataIndexFromPoint( Point pt, int seriesIndex, MeasureOption option, out double distance ) |
Visual Basic |
---|
Public Function DataIndexFromPoint ( _ pt As Point, _ seriesIndex As Integer, _ option As MeasureOption, _ <OutAttribute> ByRef distance As Double _ ) As Integer |
Parameters
- pt
- Type: System.Windows..::..Point
Point in the control coordinates.
- seriesIndex
- Type: System..::..Int32
Index of series.
- option
- Type: C1.Silverlight.Chart..::..MeasureOption
Measure option.
- distance
- Type: System..::..Double%
Distance from the data point to the specified point.