Visual.IsAncestorOf(DependencyObject) Method

Definition

Determina si el objeto visual es un antecesor del objeto visual descendiente.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

descendant
DependencyObject

Valor de tipo DependencyObject.A value of type DependencyObject.

Returns

Boolean

Es true si el objeto visual es un antecesor de descendant; de lo contrario, es false.true if the visual object is an ancestor of descendant; otherwise, false.

Applies to