[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.Section.BookmarksCollection.Contains

Contains Method

Contains(Bookmark)

Gets whether the element is part of a collection.

Declaration
public bool Contains(Bookmark value)
Parameters
Type Name Description
Bookmark value

Object to search for in the collection.

Returns
Type Description
bool

The value is true if the item parameter is found in the collection; otherwise, the value is false.

Examples
private void RemoveBookmark(Bookmark bookmarkToRemove)
{
	while (bookMarkCollection.Contains(bookmarkToRemove))
	{
		bookMarkCollection.Remove(bookmarkToRemove);
	}
	bool isExists = bookMarkCollection.Contains(bookmarkToRemove);//should be false
}