Visual.IsDescendantOf(DependencyObject) Visual.IsDescendantOf(DependencyObject) Visual.IsDescendantOf(DependencyObject) Visual.IsDescendantOf(DependencyObject) Method

定義

判斷視覺物件是否為祖系視覺物件的子系。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 的子系則為 true,否則為 falsetrue if the visual object is a descendant of ancestor; otherwise, false.

適用於