PointLineSeriesSolveNearestDataPointByCoord Method |
LightningChart .NET Help
Solve nearest data point to given X and Y screen coordinate [input in DIP].
Namespace:
Arction.Wpf.Charting.SeriesXY
Assembly:
Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SolveNearestDataPointByCoord(
int xCoordinate,
int yCoordinate,
out double nearestPointXValue,
out double nearestPointYValue,
out int nearestIndex
)
Public Function SolveNearestDataPointByCoord (
xCoordinate As Integer,
yCoordinate As Integer,
<OutAttribute> ByRef nearestPointXValue As Double,
<OutAttribute> ByRef nearestPointYValue As Double,
<OutAttribute> ByRef nearestIndex As Integer
) As Boolean
public:
bool SolveNearestDataPointByCoord(
int xCoordinate,
int yCoordinate,
[OutAttribute] double% nearestPointXValue,
[OutAttribute] double% nearestPointYValue,
[OutAttribute] int% nearestIndex
)
Parameters
- xCoordinate
- Type: SystemInt32
X screen coordinate as DIP - yCoordinate
- Type: SystemInt32
Y screen coordinate as DIP - 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