Visual.IsDescendantOf(DependencyObject) 方法

定義

判斷視覺物件是否為祖系視覺物件的子系。

public:
 bool IsDescendantOf(System::Windows::DependencyObject ^ ancestor);
public bool IsDescendantOf (System.Windows.DependencyObject ancestor);
member this.IsDescendantOf : System.Windows.DependencyObject -> bool
Public Function IsDescendantOf (ancestor As DependencyObject) As Boolean

參數

ancestor
DependencyObject

型別 DependencyObject 的值。

傳回

Boolean

如果視覺物件是 ancestor 的子系則為 true,否則為 false

適用於