Skip to main content

PdfViewer.IsVisible(PdfDocumentPosition) Method

Indicates the current visibility of a specific PdfDocumentPosition.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v22.2.dll

NuGet Package: DevExpress.Win.PdfViewer


public bool IsVisible(
    PdfDocumentPosition documentPosition


Name Type Description
documentPosition PdfDocumentPosition

A PdfDocumentPosition object that contains information about a specific document’s position.


Type Description

true if a specific PDF document position is visible; otherwise, false.


When calling the IsVisible method with the document position being null, the ArgumentNullException will be thrown.

When you call the IsVisible method before any document has been loaded, an InvalidOperationException will be thrown.

If the document position is found to be not visible, call the PdfViewer.EnsureVisibility method. This method tries to display the document position at the center of the screen using the current document zoom factor. If this is not possible, the displayed position will appear within the visible document area.

See Also