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

定義

判斷視覺物件是否為子系視覺物件的祖系。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

參數

傳回

如果視覺物件是 descendant 的祖系則為 true,否則為 falsetrue if the visual object is an ancestor of descendant; otherwise, false.

適用於