Click or drag to resize

PlotItemHitTest Method

Test wether the mouse hits a plot item. The default implementation here returns null. If you want to have a reaction on mouse click on a curve, implement this function.

Namespace: Altaxo.Graph.Gdi.Plot
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public virtual IHitTestObject? HitTest(
	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

IHitTestObject
Null if no hit, or a IHitTestObject if there was a hit.

Implements

IGPlotItemHitTest(IPlotArea, PointD2D)
See Also