private void viewer1_TableOfContentsClick(object sender, System.EventArgs e) { int toc; toc = viewer1.Document.Bookmarks.CurrentBookmark; MessageBox.Show ("ブックマークは先頭から" + viewer1.Document.Bookmarks[toc].Offset.ToString + "インチの距離でページ" + viewer1.Document.Bookmarks[toc].PageNumber.ToString + "にあります。"); }
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("ブックマークは先頭から" & viewer1.Document.Bookmarks(toc).Offset.ToString & "インチの距離でページ" & viewer1.Document.Bookmarks(toc).PageNumber.ToString & "にあります。") End Sub