ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Document Assembly / GrapeCity.ActiveReports.Document.Section Namespace / BookmarksCollection Class / Insert Method
The zero-based index at which to insert the value.
An Bookmark item to insert.
Example

In This Topic
    Insert Method (BookmarksCollection)
    In This Topic
    Inserts an item to the collection at the specified index.
    Syntax
    'Declaration
     
    Public Sub Insert( _
       ByVal index As Integer, _
       ByVal value As Bookmark _
    ) 
    public void Insert( 
       int index,
       Bookmark value
    )

    Parameters

    index
    The zero-based index at which to insert the value.
    value
    An Bookmark item to insert.
    Example
    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
    }
    See Also