NodeList Class

NodeList class

The NodeList provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

public abstract class NodeList : DOMObject, IEnumerable<Node>

Properties

NameDescription
abstract getItem Method returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
abstract getLength The number of nodes in the list.

Methods

NameDescription
abstract GetEnumerator()Returns an enumerator that iterates through the collection.
getPlatformType()This method is used to retrieve ECMAScript object Type.

See Also