ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Document Assembly / GrapeCity.ActiveReports.Document.Section Namespace / BookmarksCollection Class / Remove Method
Object to remove from the collection.
Example

In This Topic
    Remove Method (BookmarksCollection)
    In This Topic
    Removes the object from the collection.
    Syntax
    'Declaration
     
    Public Sub Remove( _
       ByVal value As Bookmark _
    ) 
    public void Remove( 
       Bookmark value
    )

    Parameters

    value
    Object to remove from the collection.
    Example
    private void RemoveBookmark(Bookmark bookmarkToRemove)
    {
    	while (bookMarkCollection.Contains(bookmarkToRemove))
    	{
    		bookMarkCollection.Remove(bookmarkToRemove);
    	}
    	bool isRemoved = bookMarkCollection.Contains(bookmarkToRemove)//should be false
    }
    See Also