Detailed Description

Allows easy iteration through all elements in a node.

Inheritance diagram for Dom.NodeIterator:

Public Member Functions

 NodeIterator (Node source)
 Iterates through the entire DOM tree from the given node. More...
 
 NodeIterator (Node source, bool deep)
 
IEnumerable< NodeIterateThrough (Node src)
 Iterates through the given element. More...
 
IEnumerator< NodeGetEnumerator ()
 

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< NodecurEnumerator
 The current enumerator for use with nextNode. More...
 

Constructor & Destructor Documentation

Dom.NodeIterator.NodeIterator ( Node  source)
inline

Iterates through the entire DOM tree from the given node.

Dom.NodeIterator.NodeIterator ( Node  source,
bool  deep 
)
inline

Member Function Documentation

IEnumerator<Node> Dom.NodeIterator.GetEnumerator ( )
inline
IEnumerator IEnumerable. Dom.NodeIterator.GetEnumerator ( )
inlineprivate
IEnumerable<Node> Dom.NodeIterator.IterateThrough ( Node  src)
inline

Iterates through the given element.

Parameters
elementThe element to iterate through.

Member Data Documentation

IEnumerator<Node> Dom.NodeIterator.curEnumerator
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.

Property Documentation

Node Dom.NodeIterator.nextNode
get

The next node.

Node Dom.NodeIterator.root
get

The source containing the elements to enumerate. Returns this too.