Interface INodeIterator
- Namespace
- AngleSharp.Dom
- Assembly
- AngleSharp.dll
The NodeIterator interface represents an iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.
[DomName("NodeIterator")]
public interface INodeIterator
- Extension Methods
Properties
Filter
Gets the NodeFilter used to select the relevant nodes.
[DomName("filter")]
NodeFilter Filter { get; }
Property Value
IsBeforeReference
Gets an indicator whether the NodeFilter is anchored before the reference node.
[DomName("pointerBeforeReferenceNode")]
bool IsBeforeReference { get; }
Property Value
Reference
Gets the Node to which the iterator is anchored.
[DomName("referenceNode")]
INode Reference { get; }
Property Value
Root
Gets a Node representing the root node as specified when the NodeIterator was created.
[DomName("root")]
INode Root { get; }
Property Value
Settings
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.
[DomName("whatToShow")]
FilterSettings Settings { get; }
Property Value
Methods
Next()
Returns the next Node in the document, or null if there are none.
[DomName("nextNode")]
INode? Next()
Returns
- INode
The next Node, if any.
Previous()
Returns the previous Node in the document, or null if there are none.
[DomName("previousNode")]
INode? Previous()
Returns
- INode
The previous Node, if any.