Determine whether an Action is in 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 bool Contains(
	Action action
)
Visual Basic
Public Function Contains ( _
	action As Action _
) As Boolean

Parameters

action
Type: TallComponents.PDF.Actions..::..Action
The Action to verify.

Return Value

True if the Action is found in this ActionCollection, false otherwise.

Remarks

The action does not accept a nullNothingnullptra null reference (Nothing in Visual Basic) as a valid value.

Examples

C#
CopyC#
GoToAction goToAction = new GoToAction( page );
UriAction uriAction = new UriAction( "http://www.tallcomponents.com" );
ActionCollection actions = new ActionCollection();
actions.Add( goToAction );
bool found = actions.<b>Contains</b>( goToAction ); //found = true
found = actions.<b>Contains</b>( uriAction ); //found = false
VB.NET
CopyC#
Dim goToAction1 as GoToAction = new GoToAction( page )
Dim uriAction1 as UriAction = new UriAction( "http://www.tallcomponents.com" )
Dim actions as ActionCollection = new ActionCollection()
actions.Add( goToAction1 )
Dim found as Boolean
found = actions.<b>Contains</b>( goToAction1 ) 'found = True
found = actions.<b>Contains</b>( uriAction1 ) 'found = False

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe given action is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also