PdfViewer.IsVisible(PdfDocumentPosition) Method
Indicates the current visibility of a specific PdfDocumentPosition.
Namespace: DevExpress.XtraPdfViewer
Assembly: DevExpress.XtraPdfViewer.v24.2.dll
NuGet Package: DevExpress.Win.PdfViewer
#Declaration
public bool IsVisible(
PdfDocumentPosition documentPosition
)
#Parameters
Name | Type | Description |
---|---|---|
document |
Pdf |
A Pdf |
#Returns
Type | Description |
---|---|
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.