ActionCollection
Overview
ActionCollection is a class in Aspose.PDF FOSS for Python.
A mapping of trigger name to :class:~aspose_pdf.interactive.Action.
This class declares 15 methods for ActionCollection objects in Python programs.
Available methods include: __contains__, __delitem__, __getitem__, __init__, __iter__, __len__, __repr__, __setitem__, clear, get, items, keys, and 3 additional methods.
Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: triggers.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
triggers | tuple[str, ...] | Read | Every trigger this owner has, whether it is set or not. |
Methods
| Signature | Description |
|---|---|
__init__(triggers: dict[str, str], read: Any, write: Any, what: str) | Calls init(triggers, read, write, what) on this ActionCollection instance. |
__len__() → int | Calls len on this ActionCollection instance. |
__iter__() → Iterator[str] | Calls iter on this ActionCollection instance. |
__contains__(trigger: object) → bool | Calls contains(trigger) on this ActionCollection instance. |
__getitem__(trigger: str) → Any | Calls getitem(trigger) on this ActionCollection instance. |
get(trigger: str, default: Any) → Any | The action trigger fires, or default when it has none. |
__setitem__(trigger: str, action: Any) | Calls setitem(trigger, action) on this ActionCollection instance. |
__delitem__(trigger: str) | Calls delitem(trigger) on this ActionCollection instance. |
set(trigger: str, action: Any) | Set trigger to fire action; None removes it. |
remove(trigger: str) → bool | Remove trigger; True when it had an action. |
clear() | Remove every trigger. |
keys() → list[str] | Calls keys on this ActionCollection instance. |
values() → list[Any] | Calls values on this ActionCollection instance. |
items() → list[tuple[str, Any]] | Calls items on this ActionCollection instance. |
__repr__() → str | Calls repr on this ActionCollection instance. |