VisualExtensionsGetVisualsAt(Visual, Point, FuncVisual, Boolean) Method

Enumerates the visuals in the visual tree whose bounds contain a point.

Definition

Namespace: Avalonia.VisualTree
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IEnumerable<Visual> GetVisualsAt(
	this Visual visual,
	Point p,
	Func<Visual, bool> filter
)

Parameters

visual  Visual
The root visual to test.
p  Point
The point.
filter  FuncVisual, Boolean
A filter predicate. If the predicate returns false then the visual and all its children will be excluded from the results.

Return Value

IEnumerableVisual
The visuals at the requested point.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Visual. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also