ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Document Assembly / GrapeCity.ActiveReports.Document.Section Namespace / BookmarksCollection Class / Contains Method
Object to search for in the collection.
Example

In This Topic
    Contains Method (BookmarksCollection)
    In This Topic
    Gets whether the element is part of a collection.
    Syntax
    'Declaration
     
    Public Function Contains( _
       ByVal value As Bookmark _
    ) As Boolean
    public bool Contains( 
       Bookmark value
    )

    Parameters

    value
    Object to search for in the collection.

    Return Value

    The value is true if the item parameter is found in the collection; otherwise, the value is false.
    Example
    private void RemoveBookmark(Bookmark bookmarkToRemove)
    {
    	while (bookMarkCollection.Contains(bookmarkToRemove))
    	{
    		bookMarkCollection.Remove(bookmarkToRemove);
    	}
    	bool isExists = bookMarkCollection.Contains(bookmarkToRemove);//should be false
    }
    See Also