Detailed Description

A collection of HTML elements.

Inheritance diagram for Dom.HTMLCollection:
Dom.INodeList Dom.HTMLFormControlsCollection

Public Member Functions

HtmlElement htmlItem (int index)
 
int indexOf (Node node)
 The index of the given node. More...
 
void remove (Node node)
 Removes the given node. More...
 
void insert (int index, Node node)
 Insert at the given index. More...
 
void push (Node node)
 Adds a node. More...
 
virtual Element namedItem (string name)
 
Element item (int index)
 Gets a node at a particular index. More...
 
IEnumerator< ElementGetEnumerator ()
 

Properties

int length [get]
 
Element this[int index] [get, set]
 Gets an element at the specified index. More...
 
Element this[string index] [get]
 Gets an element at the specified index. More...
 
- Properties inherited from Dom.INodeList
int length [get]
 The number of nodes in the list. More...
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

List< Elementvalues =new List<Element>()
 

Member Function Documentation

IEnumerator<Element> Dom.HTMLCollection.GetEnumerator ( )
inline
IEnumerator IEnumerable. Dom.HTMLCollection.GetEnumerator ( )
inlineprivate
HtmlElement Dom.HTMLCollection.htmlItem ( int  index)
inline
int Dom.HTMLCollection.indexOf ( Node  node)
inline

The index of the given node.

void Dom.HTMLCollection.insert ( int  index,
Node  node 
)
inline

Insert at the given index.

Implements Dom.INodeList.

Element Dom.HTMLCollection.item ( int  index)
inline

Gets a node at a particular index.

virtual Element Dom.HTMLCollection.namedItem ( string  name)
inlinevirtual

Reimplemented in Dom.HTMLFormControlsCollection.

void Dom.HTMLCollection.push ( Node  node)
inline

Adds a node.

Implements Dom.INodeList.

void Dom.HTMLCollection.remove ( Node  node)
inline

Removes the given node.

Implements Dom.INodeList.

Member Data Documentation

List<Element> Dom.HTMLCollection.values =new List<Element>()
private

Property Documentation

int Dom.HTMLCollection.length
get
Element Dom.HTMLCollection.this[int index]
getset

Gets an element at the specified index.

Element Dom.HTMLCollection.this[string index]
get

Gets an element at the specified index.