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

# DocumentCollection

## Overview

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

This class provides 2 methods for working with DocumentCollection objects in .NET programs.
Available methods include: `Add`, `GetEnumerator`.
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 | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Add(doc: Document)` | Calls Add on this DocumentCollection instance. |
| `GetEnumerator()` | Not implemented in this version — throws NotImplementedException at runtime. |

## See Also

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