IHitTesterHitTest Method
Hit tests a location to find the visuals at the specified point.
Namespace: Avalonia.RenderingAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
IEnumerable<Visual> HitTest(
Point p,
Visual root,
Func<Visual, bool>? filter
)
Function HitTest (
p As Point,
root As Visual,
filter As Func(Of Visual, Boolean)
) As IEnumerable(Of Visual)
abstract HitTest :
p : Point *
root : Visual *
filter : Func<Visual, bool> -> IEnumerable<Visual>
- p Point
- The point, in client coordinates.
- root Visual
- The root of the subtree to search.
- filter FuncVisual, Boolean
-
A filter predicate. If the predicate returns false then the visual and all its
children will be excluded from the results.
IEnumerableVisualThe visuals at the specified point, topmost first.