Adds an Action to the end of the ActionCollection.
Namespace: TallComponents.PDF.ActionsAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
Syntax
Parameters
- action
- Type: TallComponents.PDF.Actions..::..Action
The Action to be addded to the end of the ActionCollection.
Return Value
The ActionCollection index at which the Action has been added.
Remarks
ActionCollection does not accept a nullNothingnullptra null reference (Nothing in Visual Basic) as a valid value.
ActionCollection does not accept duplicate elements.
Examples
C#
CopyC#
VB.NET
CopyC#
ActionCollection actions = new ActionCollection(); actions.<b>Add</b>( new GoToAction( page ) );
Dim actions as ActionCollection = new ActionCollection() actions.<b>Add</b>( new GoToAction( page ) )
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The given action is nullNothingnullptra null reference (Nothing in Visual Basic). |
| System..::..ArgumentException | The given action is already in this ActionCollection. (Duplicate action) |