Visual.IsAncestorOf(DependencyObject) Metoda

Definicja

Określa, czy obiekt wizualizacji jest elementem nadrzędnym obiektu wizualizacji potomnej.

public:
 bool IsAncestorOf(System::Windows::DependencyObject ^ descendant);
public bool IsAncestorOf (System.Windows.DependencyObject descendant);
member this.IsAncestorOf : System.Windows.DependencyObject -> bool
Public Function IsAncestorOf (descendant As DependencyObject) As Boolean

Parametry

descendant
DependencyObject

Wartość typu DependencyObject.

Zwraca

Boolean

truejeśli obiekt wizualizacji jest obiektem nadrzędnym descendant; w przeciwnym razie . false

Dotyczy