See Also

Bookmark Class  | Bookmark Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Offset Property

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

[Visual Basic]
Public Property Offset As Single
[C#]
public float Offset {get; set;}

Return Type

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

Example

[C#] 

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 Basic] 

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

Bookmark Class  | Bookmark Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.