[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.Section.BookmarksCollection.Insert

Insert Method

Insert(int, Bookmark)

Inserts an item to the collection at the specified index.

Declaration
public void Insert(int index, Bookmark value)
Parameters
Type Name Description
int index

The zero-based index at which to insert the value.

Bookmark value

An Bookmark item to insert.

Examples

This example shoes how to add new bookmark at the begining of the collection

if (!bookmarkCollection.Contains(newBookmark))
{
	bookmarkCollection.Insert(0,newBookmark);
	int index = bookmarkCollection.IndexOf(newBookmark);//should be 0
}