Skip to main content
VisualIsAncestorOf Method
 

Determines whether the visual object is an ancestor of the descendant visual object.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

Syntax
public bool IsAncestorOf(
	DependencyObject descendant
)
public:
bool IsAncestorOf(
	DependencyObject^ descendant
)
member IsAncestorOf : 
        descendant:DependencyObject -> bool
Public Function IsAncestorOf (
	descendant As DependencyObject
) As Boolean

Parameters

descendant
Type:

A value of type DependencyObject.

Return Value

Type:

true if the visual object is an ancestor of descendant; otherwise, false.

Version Information
.NET Framework
Available since 3.0
Return to top