IsVisualAncestorOf Method
Tests whether an Visual is an ancestor of another visual.
Definition
Namespace: Avalonia.VisualTree
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static bool IsVisualAncestorOf(
this Visual? visual,
Visual target
)
<ExtensionAttribute>
Public Shared Function IsVisualAncestorOf (
visual As Visual,
target As Visual
) As Boolean
[<ExtensionAttribute>]
static member IsVisualAncestorOf :
visual : Visual *
target : Visual -> bool
Parameters
Return Value
Boolean
True if visual is an ancestor of target; otherwise false.
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).