## HTMLCollection class

的`HTMLCollection`代表一个泛型集合[`Element`](../../aspose.html.dom/element/).

```csharp
public abstract class HTMLCollection : DOMObject, IEnumerable<Element>
```

## 特性

| 姓名 | 描述 |
| --- | --- |
| abstract [Item](../../aspose.html.collections/htmlcollection/item/) { get; } | 返回集合中的第 index 个项目。如果索引大于或等于列表中的节点数，则返回 null. |
| abstract [Length](../../aspose.html.collections/htmlcollection/length/) { get; } | 列表中的节点数。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| abstract [GetEnumerator](../../aspose.html.collections/htmlcollection/getenumerator/)() | 获取枚举器。 |
| override [GetPlatformType](../../aspose.html.collections/htmlcollection/getplatformtype/)() | 此方法用于检索 ECMAScript 对象Type. |
| [NamedItem](../../aspose.html.collections/htmlcollection/nameditem/)(string) | 返回集合中与指定名称匹配的项。 |

### 也可以看看

* class [DOMObject](../../aspose.html.dom/domobject/)
* class [Element](../../aspose.html.dom/element/)
* 命名空间 [Aspose.Html.Collections](../../aspose.html.collections/)
* 部件 [Aspose.HTML](../../)


