PdfViewerBookmark Class
A bookmark in the PDF Viewer.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v24.2.Core.dll
NuGet Package: DevExpress.Pdf.Core
#Declaration
public class PdfViewerBookmark :
INotifyPropertyChanged
#Related API Members
The following members return PdfViewerBookmark objects:
#Remarks
Use one of the following properties to obtain a list of bookmarks:
- PdfViewer.Bookmarks - WinForms
- PdfViewerControl.Bookmarks - WPF
The PdfViewerBookmarkExtensions.FindBookmark method allows you to find a bookmark that meets the specified criteria.
The code sample below shows how to find a bookmark with a specific title:
using DevExpress.Pdf;
using DevExpress.XtraPdfViewer;
//...
pdfViewer.DocumentChanged += pdfViewer_DocumentChanged;
private void pdfViewer_DocumentChanged(object sender, PdfDocumentChangedEventArgs e) {
var bookmark = pdfViewer.Bookmarks.FindBookmark(x => x.Title == "4 Notation");
if (bookmark != null) {
pdfViewer.GoToBookmark(bookmark);
}
}