Visual.IsAncestorOf(DependencyObject) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷該視覺對象是否為後代視覺對象的祖先。
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。