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

適用対象