Visual Basic (Declaration) | |
---|---|
Public Function AddBookmark( _ ByVal strBookmark As String, _ ByVal offset As Single _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public int AddBookmark( string strBookmark, float offset ) |
Parameters
- strBookmark
- Specifies the name of the bookmark. You can use backslash "\" as a path separator to create a hierarchy of bookmarks.
- offset
- Specifies the location of the bookmark on the page.
Return Value
Index of the new bookmark in the document.
C# | Copy Code |
---|---|
private void Detail_Format(object
sender, System.EventArgs eArgs) |
Visual Basic | Copy Code |
---|---|
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format |
Bookmarks appear in the viewer's table of contents.