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

# ActionCollection

## Overview

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

Collection of actions associated with an annotation.

This class provides 8 methods for working with ActionCollection objects in .NET programs.
Available methods include: `Add`, `Clear`, `Contains`, `CopyTo`, `Delete`, `GetEnumerator`, `Remove`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Count`, `IsReadOnly`, `IsSynchronized`, `SyncRoot`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Count` | `int` | Read | Number of actions in the collection. |
| `IsReadOnly` | `bool` | Read | Gets the is read only. |
| `IsSynchronized` | `bool` | Read | Gets the is synchronized. |
| `SyncRoot` | `object` | Read | Gets the sync root. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Delete(index: int)` | Delete an action at the specified 1-based index (matching .NET Aspose.PDF API). |
| `Delete()` | Drop every action (clears /A entirely). |
| `Add(action: PdfAction)` | Add an action to the collection. |
| `Contains(item: PdfAction)` | Calls Contains on this ActionCollection instance. |
| `CopyTo(array: PdfAction[], index: int)` | Calls CopyTo on this ActionCollection instance. |
| `Remove(item: PdfAction)` | Calls Remove on this ActionCollection instance. |
| `Clear()` | Calls Clear on this ActionCollection instance. |
| `GetEnumerator()` | Calls GetEnumerator on this ActionCollection instance. |

## See Also

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