Skip to content

Element.IsDescendantOf method

Determines whether this element is a descendant of the specified element.

public bool IsDescendantOf(Element ancestor)
parameter description
ancestor The potential ancestor element.

True if this element is a descendant; otherwise, false.