ITokenList
This type represents a set of space-separated tokens.
using AngleSharp.Attributes;
using System.Collections;
using System.Collections.Generic;
namespace AngleSharp.Dom
{
[DomName("DOMTokenList")]
public interface ITokenList : IEnumerable<string>, IEnumerable
{
[DomName("length")]
int Length { get; }
[DomAccessor(Accessors.Getter)]
[DomName("item")]
string this[int index] { get; }
[DomName("contains")]
bool Contains(string token);
[DomName("add")]
void Add(params string[] tokens);
[DomName("remove")]
void Remove(params string[] tokens);
[DomName("toggle")]
bool Toggle(string token, bool force = false);
}
}