Skip to content

Element.IsAncestorOf method

Determines whether this element is an ancestor of the specified element.

public bool IsAncestorOf(Element descendant)
parameter description
descendant The potential descendant element.

True if this element is an ancestor; otherwise, false.