NodeList Class

https://dom.spec.whatwg.org/#interface-nodelist

public abstract class NodeList : IEnumerable<Node>, IReadOnlyCollection<Node>, IReadOnlyList<Node>, IEnumerable
Implements

Properties

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

Gets the number of nodes in the list.

public int Count { get; }

Property value

int

Length

Gets the number of nodes in the list.

public abstract uint Length { get; }

Indexers

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

ItemAt overloads

this[int]

NodeList.cs

Gets the node at the given index; throws when the index is out of range.

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

Node

this[uint]

NodeList.cs

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

public Node? this[uint index] { get; }
Parameters
index uint
Property value

Node?

See also

Methods

NameDescription
GetEnumerator()Returns an enumerator that iterates through the collection.
Item(uint)Returns the node at the given index, or null when the index is out of range.
System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.Node>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()

GetEnumerator()

NodeList.cs

Returns an enumerator that iterates through the collection.

public virtual IEnumerator<Node> GetEnumerator()

Returns

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

See also

Item(uint)

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

public abstract Node? Item(uint index)

System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Dom.Node>.get_Item(int)

Node IReadOnlyList<Node>.get_Item(int index)

Parameters

index int

Returns

Node

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

NodeList.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.