ITreeWalkerParentNode Method
Moves to and returns the closest visible ancestor node of the current node. If the search for parentNode attempts to step upward from the TreeWalker's root node, or if it fails to find a visible ancestor node, this method retains the current position and returns null.

Namespace: Aspose.Html.Dom.Traversal
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.4
Syntax
Node ParentNode()

Return Value

Type: Node
The new parent node, or null if the current node has no parent in the TreeWalker's logical view.
See Also