Adds an Action to the end of the ActionCollection.

Namespace: TallComponents.PDF.Layout.Actions
Assembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0

Syntax

C#
public int Add(
	Action action
)
Visual Basic
Public Function Add ( _
	action As Action _
) As Integer

Parameters

action
Type: TallComponents.PDF.Layout.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