PDFKit.NET 2.0 Class Library (.NET 2.0)

ActionCollection.Add Method 

Adds an Action to the end of the ActionCollection.

public int Add(
   Action action
);

Parameters

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 a null reference as a valid value.

ActionCollection does not accept duplicate elements.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThe given action is a null reference.
ArgumentExceptionThe given action is already in this ActionCollection. (Duplicate action)

Example

C#

ActionCollection actions = new ActionCollection();
actions.Add( new GoToAction( page ) );
VB.NET
Dim actions as ActionCollection = new ActionCollection()
actions.Add( new GoToAction( page ) )

See Also

ActionCollection Class | TallComponents.PDF.Actions Namespace