Visual.IsDescendantOf(DependencyObject) 方法
定義
判斷視覺物件是否為祖系視覺物件的子系。Determines whether the visual object is a descendant of the ancestor visual object.
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 的值。A value of type DependencyObject.
傳回
如果視覺物件是 ancestor
的子系則為 true
,否則為 false
。true
if the visual object is a descendant of ancestor
; otherwise, false
.