ActionCollection
Overview
ActionCollection is a class in Aspose.PDF FOSS for .NET.
Inherits from: IEnumerable<PdfAction>.
Collection of actions associated with an annotation.
This class declares 8 methods for ActionCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, CopyTo, Delete, GetEnumerator, Remove.
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 the public API). |
Delete() | Drop every action (clears /A entirely). |
Add(action: PdfAction) | Add an action to the collection. |
Contains(item: PdfAction) | Returns true when item is in the collection. |
CopyTo(array: PdfAction[], index: int) | Copies the actions into array, starting at the 0-based position index. |
Remove(item: PdfAction) | Removes item from the collection and rebuilds the action chain of the owner; returns true when it was removed. |
Clear() | Removes every action from the collection and from the owner’s action entry. |
GetEnumerator() | Calls GetEnumerator on this ActionCollection instance. |