DOMTokenList Class
Contents
[
Hide
]DOMTokenList class
The DOMTokenList class represents a set of space-separated tokens. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
public class DOMTokenList : DOMObject, IEnumerable<String>
Properties
| Name | Description | 
|---|---|
| getItem Returns the item in the list by its index, or null if index is greater than or equal to the list’s length. | |
| getLength Returns an ulong which represents the number of tokens stored in this list. | |
| [getValue] | |
| [setValue] Gets or sets the value of a corresponding attribute. | 
Methods
| Name | Description | 
|---|---|
| add(params String[]) | Adds the specified token(s) to the list. | 
| contains(String) | Returns true if the list contains the given token, otherwise false. | 
| getEnumerator() | Returns an enumerator that iterates through the collection. | 
| getPlatformType() | This method is used to retrieve the ECMAScript object . | 
| remove(params String[]) | Removes the specified token(s) from the list. | 
| replace(String, String) | Replaces an existing token with a new token. Does nothing if the first token doesn’t exist. | 
| supports(String) | Returns true if a given token is in the associated attribute’s supported tokens. | 
| toggle(String) | Removes the token from the list if it exists, or adds the token to the list if it doesn’t. | 
| toggle(String, bool) | Removes the token from the list if it exists, or adds the token to the list if it doesn’t. | 
See Also
- class DOMObject
 - package com.aspose.html.collections
 - package Aspose.HTML