Back to Devexpress

PdfViewer.IsVisible(PdfDocumentPosition) Method

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-dot-isvisible-x28-devexpress-dot-pdf-dot-pdfdocumentposition-x29.md

latest2.2 KB
Original Source

PdfViewer.IsVisible(PdfDocumentPosition) Method

Indicates the current visibility of a specific PdfDocumentPosition.

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
public bool IsVisible(
    PdfDocumentPosition documentPosition
)
vb
Public Function IsVisible(
    documentPosition As PdfDocumentPosition
) As Boolean

Parameters

NameTypeDescription
documentPositionPdfDocumentPosition

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

|

Returns

TypeDescription
Boolean

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

|

Remarks

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

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace