Visual.IsAncestorOf(DependencyObject) Visual.IsAncestorOf(DependencyObject) Visual.IsAncestorOf(DependencyObject) Visual.IsAncestorOf(DependencyObject) Method

Definition

Determines whether the visual object is an ancestor of the descendant visual object.

public:
 bool IsAncestorOf(System::Windows::DependencyObject ^ descendant);
public bool IsAncestorOf (System.Windows.DependencyObject descendant);
member this.IsAncestorOf : System.Windows.DependencyObject -> bool
Public Function IsAncestorOf (descendant As DependencyObject) As Boolean

Parameters

Returns

true if the visual object is an ancestor of descendant; otherwise, false.

Applies to