ערוך

שתף באמצעות


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

descendant
DependencyObject

A value of type DependencyObject.

Returns

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

Applies to