Adds an Action to the end of the ActionCollection.

Namespace: TallComponents.PDF.Actions
Assembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0

Syntax

C#
public void Add(
	Action action
)
Visual Basic
Public Sub Add ( _
	action As Action _
)

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#
ActionCollection actions = new ActionCollection();
actions.<b>Add</b>( new GoToAction( page ) );
VB.NET
CopyC#
Dim actions as ActionCollection = new ActionCollection()
actions.<b>Add</b>( new GoToAction( page ) )

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe given action is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe given action is already in this ActionCollection. (Duplicate action)

See Also