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 Hierarchy

Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.11
public class DOMTokenList : DOMObject, 
	IEnumerable<string>, IEnumerable

The DOMTokenList type exposes the following members.

Public propertyItem
Returns the item in the list by its index, or null if index is greater than or equal to the list's length.
Public propertyLength
Returns an ulong which represents the number of tokens stored in this list.
Public propertyValue
Gets or sets the value of a corresponding attribute.
Public methodAdd
Adds the specified token(s) to the list.
Public methodContains
Returns true if the list contains the given token, otherwise false.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPlatformType

This method is used to retrieve the ECMAScript object .

(Inherited from DOMObject.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the specified token(s) from the list.
Public methodReplace
Replaces an existing token with a new token. Does nothing if the first token doesn't exist.
Public methodSupports
Returns true if a given token is in the associated attribute's supported tokens.
Public methodToggle(String)
Removes the token from the list if it exists, or adds the token to the list if it doesn't.
Public methodToggle(String, NullableBoolean)
Removes the token from the list if it exists, or adds the token to the list if it doesn't.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also