Class NodeList

Class NodeList

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

NodeList 提供了一个有序节点集合的抽象,而不定义或限制该集合的实现方式。

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

继承

objectDOMObjectNodeList

实现

INotifyPropertyChanged, IEnumerable<node>, IEnumerable

继承成员

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

构造函数

NodeList()

protected NodeList()

属性

Length

列表中节点的数量。

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

属性值

int

this[int]

方法返回集合中索引为 index 的项。如果 index 大于或等于列表中的节点数量,则返回 null。

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

属性值

Node

方法

GetEnumerator()

返回一个枚举数,用于迭代集合。

public abstract IEnumerator<node> GetEnumerator()

返回

IEnumerator<Node&gt;

一个可以用于迭代集合的 System.Collections.Generic.IEnumerator`1。

GetPlatformType()

此方法用于检索 ECMAScript 对象 System.Type。

public override Type GetPlatformType()

返回

Type

ECMAScript 对象 System.Type。

 中文