語言

Visual.IsAncestorOf(DependencyObject) 方法

定義

判斷該視覺對象是否為後代視覺對象的祖先。

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

參數

descendant
DependencyObject

型別 DependencyObject 的值。

傳回

true 若視覺對象是 的祖先 descendant;否則, false。

適用於