Class NodeList

Class NodeList

Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML.dll (25.2.0)

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

[DOMObject]
[DOMName("NodeList")]
[ComVisible(true)]
public abstract class NodeList : DOMObject, INotifyPropertyChanged, IEnumerable<node>, IEnumerable

Inheritance

objectDOMObjectNodeList

Implements

INotifyPropertyChanged, IEnumerable<node>, IEnumerable

Inherited Members

DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

NodeList()

protected NodeList()

Properties

Length

The number of nodes in the list.

[DOMName("length")]
public abstract int Length { get; }

Property Value

int

this[int]

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.

[DOMName("item")]
public abstract Node this[int index] { get; }

Property Value

Node

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public abstract IEnumerator<node> GetEnumerator()

Returns

IEnumerator<Node&gt;

A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

GetPlatformType()

This method is used to retrieve ECMAScript object System.Type.

public override Type GetPlatformType()

Returns

Type

The ECMAScript object System.Type. </node>