Scene.

HitTest(Point, IVisual, Func<IVisual, bool>) Method

Summary

Gets the visuals at a point in the scene.
Namespace
Avalonia.Rendering.SceneGraph
Containing Type
Scene

Syntax

public IEnumerable<IVisual> HitTest(Point p, IVisual root, Func<IVisual, bool> filter)

Parameters

Name Type Description
p Point The point.
root IVisual The root of the subtree to search.
filter Func<IVisual, bool> A filter. May be null.

Return Value

Type Description
IEnumerable<IVisual> The visuals at the specified point.