DomStringList Class
https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#domstringlist
public sealed class DomStringList : IEnumerable<string>, IReadOnlyCollection<string>, IReadOnlyList<string>, IEnumerableConstructors
| Name | Description |
|---|---|
| DomStringList(IEnumerable<string>) | Creates a list that contains a copy of the given strings. |
DomStringList(IEnumerable<string>)
DomStringList.csCreates a list that contains a copy of the given strings.
public DomStringList(IEnumerable<string> items)Parameters
itemsIEnumerable<string>
Properties
| Name | Description |
|---|---|
| Count | Gets the number of strings in the list. |
| Length | Gets the number of strings in the list. |
Count
DomStringList.csLength
DomStringList.csGets the number of strings in the list.
public uint Length { get; }Indexers
| Name | Description |
|---|---|
| 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
this[int]
DomStringList.csthis[uint]
DomStringList.csGets the string at the given index, or null when the index is out of range.
Methods
| Name | Description |
|---|---|
| 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.csReturns whether the list contains the given string.
GetEnumerator()
DomStringList.csReturns 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.
Item(uint)
DomStringList.csReturns the string at the given index, or null when the index is out of range.