Visual.IsDescendantOf(DependencyObject) Metoda

Definicja

Określa, czy obiekt wizualizacji jest elementem potomnym obiektu wizualizacji nadrzędnych.

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

Parametry

ancestor
DependencyObject

Wartość typu DependencyObject.

Zwraca

Boolean

true jeśli obiekt wizualizacji jest elementem potomnym ancestor; w przeciwnym razie false.

Dotyczy