Skip to main content

HitTest Method

Hit test the geometry in this node.

Definition

Namespace: Avalonia.Rendering.SceneGraph
Assembly: Avalonia.Base (in Avalonia.Base.dll)

bool HitTest(
Point p
)

Parameters

  Point
The point in global coordinates.

Return Value

Boolean
True if the point hits the node's geometry; otherwise false.

Remarks

This method does not recurse to childs, if you want to hit test children they must be hit tested manually.

See Also

Reference

ICustomDrawOperation Interface
Avalonia.Rendering.SceneGraph Namespace