ActiveReports Developer 7
CurrentBookmark Property
See Also  Example
GrapeCity.ActiveReports.Document.v7 Assembly > GrapeCity.ActiveReports.Document.Section Namespace > BookmarksCollection Class : CurrentBookmark Property

Glossary Item Box

Returns the index of the currently selected bookmark.

Syntax

Visual Basic (Declaration) 
Public Property CurrentBookmark As System.Integer
C# 
public System.int CurrentBookmark {get; set;}

Property Value

An integer value that represents the number of bookmark objects in the collection.

Example

C#Copy Code
private void arv_TableOfContentsClick(object sender, System.EventArgs e)
{
    int toc;
    toc = arv.Document.Bookmarks.CurrentBookmark;
    MessageBox.Show ("You are leaving the bookmark at page " + arv.Document.Bookmarks[toc].PageNumber.ToString() + ", " + arv.Document.Bookmarks[toc].Offset.ToString() + " inches from the top of the page.");
}
Visual BasicCopy Code
Private Sub arv_TableOfContentsClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles arv.TableOfContentsClick
    Dim toc As Integer
    toc = arv.Document.Bookmarks.CurrentBookmark
    MsgBox("You are leaving the bookmark at page " & arv.Document.Bookmarks(toc).PageNumber.ToString & ", " & arv.Document.Bookmarks(toc).Offset.ToString & " inches from the top of the page.")
End Sub

See Also