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.Svg.Collections
Assembly:  Aspose.SVG (in Aspose.SVG.dll) Version: 22.1
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 (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetPlatformType
This method is used to retrieve ECMAScript object Type.
(Inherited from DOMObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (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 (Inherited from Object.)
See Also