isAncestorOf

open fun isAncestorOf(descendant: Node): Boolean(source)

Determines whether this node is an ancestor of the given node. A node is not an ancestor of itself.

Return

true if this node is an ancestor of the given node, and false otherwise.

Parameters

descendant

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

See also