
## 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.



**Inheritance:** [`DOMTokenList`](/html/python-net/aspose.html.collections/domtokenlist) → 
[`DOMObject`](/html/python-net/aspose.html.dom/domobject)



The DOMTokenList type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [length](/html/python-net/aspose.html.collections/domtokenlist/length) | Returns an ulong which represents the number of tokens stored in this list. |
| [value](/html/python-net/aspose.html.collections/domtokenlist/value) | Gets or sets the value of a corresponding attribute. |


### Indexer
| Name | Description |
| :- | :- |
| [index] |  |


### Methods
| Method | Description |
| :- | :- |
| [toggle](/html/python-net/aspose.html.collections/domtokenlist/toggle/#str) | Removes the token from the list if it exists, or adds the token to the list if it doesn't. |
| [toggle](/html/python-net/aspose.html.collections/domtokenlist/toggle/#str-bool) | Removes the token from the list if it exists, or adds the token to the list if it doesn't. |
| [get_platform_type](/html/python-net/aspose.html.collections/domtokenlist/get_platform_type/#) | This method is used to retrieve the ECMAScript object Type. |
| [contains](/html/python-net/aspose.html.collections/domtokenlist/contains/#str) | Returns true if the list contains the given token, otherwise false. |
| [add](/html/python-net/aspose.html.collections/domtokenlist/add/#list) | Adds the specified token(s) to the list. |
| [remove](/html/python-net/aspose.html.collections/domtokenlist/remove/#list) | Removes the specified token(s) from the list. |
| [replace](/html/python-net/aspose.html.collections/domtokenlist/replace/#str-str) | Replaces an existing token with a new token. Does nothing if the first token doesn't exist. |
| [supports](/html/python-net/aspose.html.collections/domtokenlist/supports/#str) | Returns true if a given token is in the associated attribute's supported tokens. |



### See Also
* module [`aspose.html.collections`](..)
* class [`DOMObject`](/html/python-net/aspose.html.dom/domobject)
* class [`DOMTokenList`](/html/python-net/aspose.html.collections/domtokenlist)
