FreeformPointLineSeriesSolveNearestDataPointByValue Method |
LightningChart .NET Help
Solve nearest data point to given X and Y value.
Namespace:
Arction.Wpf.ChartingMVVM.SeriesXY
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SolveNearestDataPointByValue(
double xValue,
double yValue,
out double nearestPointXValue,
out double nearestPointYValue,
out int nearestIndex
)
Public Function SolveNearestDataPointByValue (
xValue As Double,
yValue As Double,
<OutAttribute> ByRef nearestPointXValue As Double,
<OutAttribute> ByRef nearestPointYValue As Double,
<OutAttribute> ByRef nearestIndex As Integer
) As Boolean
public:
bool SolveNearestDataPointByValue(
double xValue,
double yValue,
[OutAttribute] double% nearestPointXValue,
[OutAttribute] double% nearestPointYValue,
[OutAttribute] int% nearestIndex
)
Parameters
- xValue
- Type: SystemDouble
X value. - yValue
- Type: SystemDouble
Y value. - nearestPointXValue
- Type: SystemDouble
Nearest data point X. - nearestPointYValue
- Type: SystemDouble
Nearest data point Y. - nearestIndex
- Type: SystemInt32
Nearest data point index in the Points or PointsWithErrors array.
Return Value
Type:
BooleanTrue if successfully solved.
See Also