## HTMLCollection class

The `HTMLCollection` represents a generic collection of [`Element`](../../com.aspose.html.dom/element/).

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

## Properties

| Name | Description |
| --- | --- |
| abstract [getItem](../../com.aspose.html.collections/htmlcollection/item/) Returns the index-th item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. |
| abstract [getLength](../../com.aspose.html.collections/htmlcollection/length/) The number of nodes in the list. |

## Methods

| Name | Description |
| --- | --- |
| abstract [GetEnumerator](../../com.aspose.html.collections/htmlcollection/getenumerator/)() | Gets the enumerator. |
| [getPlatformType](../../com.aspose.html.collections/htmlcollection/getplatformtype/)() | This method is used to retrieve ECMAScript object Type. |
| [namedItem](../../com.aspose.html.collections/htmlcollection/nameditem/)(String) | Returns the item in the collection matched specified name. |

### See Also

* class [DOMObject](../../com.aspose.html.dom/domobject/)
* class [Element](../../com.aspose.html.dom/element/)
* package [com.aspose.html.collections](../../com.aspose.html.collections/)
* package [Aspose.HTML](../../)
