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

Glossary Item Box

Gets or sets the location of the bookmark relative to the top of the page.

Syntax

Visual Basic (Declaration) 
Public Property Offset As System.Single
C# 
public System.float Offset {get; set;}

Property Value

A float value that represents the location of the bookmark in inches.

Example

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

See Also