Skip to main content
A newer version of this page is available. .

PdfViewer.NavigationPaneInitialVisibility Property

Specifies the initial visible state of a navigation pane after loading a new PDF document.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v18.2.dll

Declaration

[DefaultValue(PdfNavigationPaneVisibility.Default)]
public PdfNavigationPaneVisibility NavigationPaneInitialVisibility { get; set; }

Property Value

Type Default Description
PdfNavigationPaneVisibility **Default**

A PdfNavigationPaneVisibility enumerator value defining the visibility of a navigation pane.

Available values:

Name Description
Default

When this option is specified for the PdfViewer.NavigationPaneInitialVisibility property, it sets the PdfViewer.NavigationPaneVisibility property either to Visible (a document contains bookmarks) or to Collapsed (a document does not have bookmarks and attachments tab is shown in the collapsed state). This option is not supported for the PdfViewer.NavigationPaneVisibility property (the ArgumentOutOfRangeException is thrown).

Hidden

The PDF navigation pane is hidden.

Collapsed

The PDF navigation pane is collapsed.

Visible

This navigation pane is displayed.

Expanded

The PDF navigation pane is expanded.

Remarks

Use the NavigationPaneInitialVisibility property to specify the initial visible state of a navigation pane (where bookmarks and attachments can be located) after a PDF document is loaded. The available values are PdfNavigationPaneVisibility.Default, PdfNavigationPaneVisibility.Collapsed, PdfNavigationPaneVisibility.Expanded, PdfNavigationPaneVisibility.Hidden and PdfNavigationPaneVisibility.Visible.

When the NavigationPaneInitialVisibility property is set to PdfNavigationPaneVisibility.Default, it sets the PdfViewer.NavigationPaneVisibility property either to PdfNavigationPaneVisibility.Visible (if the document contains bookmarks) or to PdfNavigationPaneVisibility.Collapsed (if a document does not have bookmarks and the attachments is collapsed).

See Also