---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/ElementCollection
---

# ElementCollection

## Overview

`ElementCollection` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `IEnumerable`.

A live, mutable collection of structure elements held under a parent's /K array.

This class provides 2 methods for working with ElementCollection objects in .NET programs.
Available methods include: `GetEnumerator`, `Remove`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Count`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Count` | `int` | Read | Number of direct children. |

## Methods

| Signature | Description |
|-----------|-------------|
| `GetEnumerator()` | Iterate the children in tree order. |
| `Remove(item: Element)` | Remove item from this collection and from the parent's /K array. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)