ITreeWalker.ParentNode
ITreeWalker.ParentNode 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.
public Node ParentNode()
Return Value
The new parent node, or null if the current node has no parent in the TreeWalker’s logical view.
See Also
- class Node
- interface ITreeWalker
- namespace Aspose.Html.Dom.Traversal
- assembly Aspose.HTML