Back to Devexpress

BookmarkOptions.DisplayBookmarksInPdfNavigationPane Property

officefileapi-devexpress-dot-xtrarichedit-dot-bookmarkoptions-f911f0ae.md

latest4.2 KB
Original Source

BookmarkOptions.DisplayBookmarksInPdfNavigationPane Property

Specifies what bookmarks to display in the PDF viewer’s Bookmarks pane when a document is exported to PDF.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(PdfBookmarkDisplayMode.None)]
[XtraSerializableProperty]
public virtual PdfBookmarkDisplayMode DisplayBookmarksInPdfNavigationPane { get; set; }
vb
<DefaultValue(PdfBookmarkDisplayMode.None)>
<XtraSerializableProperty>
Public Overridable Property DisplayBookmarksInPdfNavigationPane As PdfBookmarkDisplayMode

Property Value

TypeDefaultDescription
PdfBookmarkDisplayModeNone

A PdfBookmarkDisplayMode enumeration member that specifies what bookmarks should appear in the Bookmarks pane.

|

Available values:

NameDescription
None

Specifies that bookmarks contained in a document should not be displayed in the Bookmarks panel.

| | All |

Specifies that all bookmarks with references in a document should be displayed in the Bookmarks panel.

| | TocBookmarks |

Specifies that only bookmarks based on which a TOC is generated should be displayed in the Bookmarks panel.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DisplayBookmarksInPdfNavigationPane
RichEditControlOptionsBase

.Bookmarks .DisplayBookmarksInPdfNavigationPane

|

Remarks

The DisplayBookmarksInPdfNavigationPane property allows you to display a Table of Contents or hyperlinks to document bookmarks in the Bookmarks navigation pane of the PDF viewer, as illustrated in the following image.

Set the DisplayBookmarksInPdfNavigationPane property to the PdfBookmarkDisplayMode.TocBookmarks value to show only bookmarks generated with the TOC field.

Use the DisplayUnreferencedPdfBookmarks property to determine whether to show bookmarks without references (i.e., without hyperlinks anchored to these bookmarks) in the Bookmarks navigation pane. The DisplayBookmarksInPdfNavigationPane property set PdfBookmarkDisplayMode.None controls the unreferenced bookmarks when the DisplayUnreferencedPdfBookmarks property is set to true.

The Bookmarks navigation pane displays the Bookmark.Name for visible bookmarks, and the text contained in the Bookmark.Range for hidden bookmarks.

The displayed text’s length is limited to 512 symbols.

See Also

BookmarkOptions Class

BookmarkOptions Members

DevExpress.XtraRichEdit Namespace