A live collection of DOM Tokens (always strings).
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... | |
|
inline |
|
inline |
Adds a token to the set.
|
inline |
True if the given token is in the set.
|
inlineprivate |
Updates the original attribute.
|
inline |
|
inlineprivate |
|
inline |
Insert at the given index.
|
inline |
Gets a token at a particular index.
|
inline |
Removes the given token.
|
inline |
Replaces old with the given token.
|
inline |
Adds the given token if it's not in there yet; removes it if it is.
|
private |
The attribute this originates from.
|
private |
The node this comes from.
|
private |
The raw values.
|
get |
|
getset |
Gets an element at the specified index.