Click or drag to resize

SampleDataSeriesSolveNearestSampleByCoord Method

LightningChart .NET Help
Solve nearest sample to given X and Y screen coordinate.

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