共用方式為


Visual3D.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

可能是祖系的視覺物件。

傳回

Boolean

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

適用於