AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

.NET API 960,512 bytes

 ITreeWalker

public interface ITreeWalker
The TreeWalker object represents the nodes of a document subtree and a position within them.
INode Current { get; set; }

Gets or sets the Node on which the TreeWalker is currently pointing at.

NodeFilter Filter { get; }

Gets the NodeFilter used to select the relevant nodes.

INode Root { get; }

Gets a Node representing the root node as specified when the TreeWalker was created.

Gets a description of the types of nodes that must to be presented. Non-matching nodes are skipped, but their children may be included, if relevant.

Moves the current Node to the first visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.

Moves the current Node to the last visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.

Moves the current Node to the next visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, returns null and the current node is not changed.

Moves the current Node to its next sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.

Moves the current Node to the first visible ancestor node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is before that the root node defined at the object construction, returns null and the current node is not changed.

Moves the current Node to the previous visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists,or if it is before that the root node defined at the object construction, returns null and the current node is not changed.

Moves the current Node to its previous sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.