Allows easy iteration through all elements in a node.
Public Member Functions | |
| NodeIterator (Node source) | |
| Iterates through the entire DOM tree from the given node. More... | |
| NodeIterator (Node source, bool deep) | |
| IEnumerable< Node > | IterateThrough (Node src) |
| Iterates through the given element. More... | |
| IEnumerator< Node > | GetEnumerator () |
Public Attributes | |
| NodeFilter | filter |
| A filter if there is one. JS objects get cooerced to one of these. More... | |
| Node | Source |
| The source containing the elements to enumerate. Returns this too. More... | |
| bool | Deep =true |
| False if the iteration should skip the following children of the current element. More... | |
| bool | SkipChildren |
| Set this to true during iteration to avoid going into a particular elements child nodes. More... | |
Properties | |
| Node | root [get] |
| The source containing the elements to enumerate. Returns this too. More... | |
| Node | nextNode [get] |
| The next node. More... | |
Private Member Functions | |
| IEnumerator IEnumerable. | GetEnumerator () |
Private Attributes | |
| IEnumerator< Node > | curEnumerator |
| The current enumerator for use with nextNode. More... | |
|
inline |
Iterates through the entire DOM tree from the given node.
|
inline |
|
inline |
|
inlineprivate |
Iterates through the given element.
| element | The element to iterate through. |
|
private |
The current enumerator for use with nextNode.
| bool Dom.NodeIterator.Deep =true |
False if the iteration should skip the following children of the current element.
| NodeFilter Dom.NodeIterator.filter |
A filter if there is one. JS objects get cooerced to one of these.
| bool Dom.NodeIterator.SkipChildren |
Set this to true during iteration to avoid going into a particular elements child nodes.
| Node Dom.NodeIterator.Source |
The source containing the elements to enumerate. Returns this too.
|
get |
The next node.
|
get |
The source containing the elements to enumerate. Returns this too.