SampleDataSeriesSolveNearestSampleByCoord Method |
LightningChart .NET Help
Solve nearest sample to given X and Y screen coordinate.
Namespace:
Arction.Wpf.ChartingMVVM.SeriesXY
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SolveNearestSampleByCoord(
int xCoordinate,
int yCoordinate,
out double nearestSampleXValue,
out double nearestSampleYValue,
out int nearestIndex
)
Public Function SolveNearestSampleByCoord (
xCoordinate As Integer,
yCoordinate As Integer,
<OutAttribute> ByRef nearestSampleXValue As Double,
<OutAttribute> ByRef nearestSampleYValue As Double,
<OutAttribute> ByRef nearestIndex As Integer
) As Boolean
public:
bool SolveNearestSampleByCoord(
int xCoordinate,
int yCoordinate,
[OutAttribute] double% nearestSampleXValue,
[OutAttribute] double% nearestSampleYValue,
[OutAttribute] int% nearestIndex
)
Parameters
- xCoordinate
- Type: SystemInt32
X screen coordinate. - yCoordinate
- Type: SystemInt32
Y screen coordinate. - nearestSampleXValue
- Type: SystemDouble
Nearest sample X. - nearestSampleYValue
- Type: SystemDouble
Nearest sample Y. - nearestIndex
- Type: SystemInt32
Nearest sample index in the SampleSingle or SamplesDouble array.
Return Value
Type:
BooleanTrue if successfully solved.
See Also