Determine whether an Action is in the ActionCollection.
True if the Action is found in this ActionCollection, false otherwise.
The action does not accept a a null reference as a valid value.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The given action is a null reference. |
C#
GoToAction goToAction = new GoToAction( page ); UriAction uriAction = new UriAction( "http://www.tallcomponents.com" ); ActionCollection actions = new ActionCollection(); actions.Add( goToAction ); bool found = actions.Contains( goToAction ); //found = true found = actions.Contains( uriAction ); //found = falseVB.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.Contains( goToAction1 ) 'found = True found = actions.Contains( uriAction1 ) 'found = False
ActionCollection Class | TallComponents.PDF.Actions Namespace