Detailed Description

A live collection of DOM Tokens (always strings).

Inheritance diagram for Dom.DOMTokenList:

Public Member Functions

 DOMTokenList (Node host, string attrib)
 
void remove (string token)
 Removes the given token. More...
 
void toggle (string token)
 Adds the given token if it's not in there yet; removes it if it is. More...
 
void replace (string old, string with)
 Replaces old with the given token. More...
 
void insert (int index, string token)
 Insert at the given index. More...
 
void add (string token)
 Adds a token to the set. More...
 
bool contains (string token)
 True if the given token is in the set. More...
 
string item (int index)
 Gets a token at a particular index. More...
 
IEnumerator< string > GetEnumerator ()
 

Properties

int length [get]
 
string this[int index] [get, set]
 Gets an element at the specified index. More...
 

Private Member Functions

void Flush ()
 Updates the original attribute. More...
 
IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

Node Host_
 The node this comes from. More...
 
string Attribute_
 The attribute this originates from. More...
 
List< string > values =new List<string>()
 The raw values. More...
 

Constructor & Destructor Documentation

Dom.DOMTokenList.DOMTokenList ( Node  host,
string  attrib 
)
inline

Member Function Documentation

void Dom.DOMTokenList.add ( string  token)
inline

Adds a token to the set.

bool Dom.DOMTokenList.contains ( string  token)
inline

True if the given token is in the set.

void Dom.DOMTokenList.Flush ( )
inlineprivate

Updates the original attribute.

IEnumerator<string> Dom.DOMTokenList.GetEnumerator ( )
inline
IEnumerator IEnumerable. Dom.DOMTokenList.GetEnumerator ( )
inlineprivate
void Dom.DOMTokenList.insert ( int  index,
string  token 
)
inline

Insert at the given index.

string Dom.DOMTokenList.item ( int  index)
inline

Gets a token at a particular index.

void Dom.DOMTokenList.remove ( string  token)
inline

Removes the given token.

void Dom.DOMTokenList.replace ( string  old,
string  with 
)
inline

Replaces old with the given token.

void Dom.DOMTokenList.toggle ( string  token)
inline

Adds the given token if it's not in there yet; removes it if it is.

Member Data Documentation

string Dom.DOMTokenList.Attribute_
private

The attribute this originates from.

Node Dom.DOMTokenList.Host_
private

The node this comes from.

List<string> Dom.DOMTokenList.values =new List<string>()
private

The raw values.

Property Documentation

int Dom.DOMTokenList.length
get
string Dom.DOMTokenList.this[int index]
getset

Gets an element at the specified index.