isDescendantOf

open fun isDescendantOf(ancestor: Node): Boolean(source)

Determines whether this HasParentNode node is a descendant of the given node. A node is not a descendant of itself.

Return

true if this node is a descendant of the given node, and false otherwise.

Parameters

ancestor

the node for which to determine whether it has this node as an ancestor.

See also