Click or drag to resize

FreeformPointLineSeriesSolveNearestDataPointByCoord Method

LightningChart .NET Help
Solve nearest data point to given X and Y screen coordinate [input in DIP].

Namespace:  Arction.WinForms.Charting.SeriesXY
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public bool SolveNearestDataPointByCoord(
	int xCoordinate,
	int yCoordinate,
	out double nearestPointXValue,
	out double nearestPointYValue,
	out 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: Boolean
True if successfully solved.
See Also