ActionCollectionContains Method

Determine whether an Action is in the ActionCollection.

Namespace:  TallComponents.PDF.Actions
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 4.0.100.0
Syntax
public bool Contains(
	Action action
)
.
Remarks
The action does not accept a as a valid value.
Examples
C#
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
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
See Also