BlockSeriesBaseSolveNearestSampleByValue Method |
LightningChart .NET Help
Solve nearest sample to given X and Y value.
Namespace:
Arction.Wpf.Charting.SeriesXY
Assembly:
Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic virtual bool SolveNearestSampleByValue(
double xValue,
double yValue,
out double nearestSampleXValue,
out double nearestSampleYValue,
out int nearestIndex
)
Public Overridable Function SolveNearestSampleByValue (
xValue As Double,
yValue As Double,
<OutAttribute> ByRef nearestSampleXValue As Double,
<OutAttribute> ByRef nearestSampleYValue As Double,
<OutAttribute> ByRef nearestIndex As Integer
) As Boolean
public:
virtual bool SolveNearestSampleByValue(
double xValue,
double yValue,
[OutAttribute] double% nearestSampleXValue,
[OutAttribute] double% nearestSampleYValue,
[OutAttribute] int% nearestIndex
)
Parameters
- xValue
- Type: SystemDouble
X value. - yValue
- Type: SystemDouble
Y value. - 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