Click or drag to resize

G2DPlotItemGetNearestPlotPoint Method

Returns the index of a scatter point that is nearest to the location hitpoint

Namespace: Altaxo.Graph.Gdi.Plot
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public XYScatterPointInformation? GetNearestPlotPoint(
	IPlotArea layer,
	PointD2D hitpoint
)

Parameters

layer  IPlotArea
The layer in which this plot item is drawn into.
hitpoint  PointD2D
The point where the mouse is pressed.

Return Value

XYScatterPointInformation
The information about the point that is nearest to the location, or null if it can not be determined.
See Also