DomStringList Class

https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#domstringlist

public sealed class DomStringList : IEnumerable<string>, IReadOnlyCollection<string>, IReadOnlyList<string>, IEnumerable
Implements

Constructors

NameDescription
DomStringList(IEnumerable<string>)Creates a list that contains a copy of the given strings.

DomStringList(IEnumerable<string>)

DomStringList.cs

Creates a list that contains a copy of the given strings.

public DomStringList(IEnumerable<string> items)

Parameters

items IEnumerable<string>

Properties

NameDescription
CountGets the number of strings in the list.
LengthGets the number of strings in the list.

Gets the number of strings in the list.

public int Count { get; }

Property value

int

Gets the number of strings in the list.

public uint Length { get; }

Indexers

NameDescription
this[int]Gets the string at the given index.
this[uint]Gets the string at the given index, or null when the index is out of range.

ItemAt overloads

Gets the string at the given index.

public string this[int index] { get; }
Parameters
index int
Property value

string

Gets the string at the given index, or null when the index is out of range.

public string? this[uint index] { get; }

Methods

NameDescription
Contains(string)Returns whether the list contains the given string.
GetEnumerator()Returns an enumerator that iterates through the collection.
Item(uint)Returns the string at the given index, or null when the index is out of range.
System.Collections.Generic.IReadOnlyList<System.String>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()

Contains(string)

DomStringList.cs

Returns whether the list contains the given string.

public bool Contains(string value)

GetEnumerator()

DomStringList.cs

Returns an enumerator that iterates through the collection.

public IEnumerator<string> GetEnumerator()

Returns

IEnumerator<string> An enumerator that can be used to iterate through the collection.

Returns the string at the given index, or null when the index is out of range.

public string? Item(uint index)

System.Collections.Generic.IReadOnlyList<System.String>.get_Item(int)

string IReadOnlyList<string>.get_Item(int index)

Parameters

index int

Returns

string

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

DomStringList.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.