wpf-devexpress-dot-xpf-dot-pdfviewer-dot-pdfviewercontrol-f3c2a57f.md
Returns the current PDF document.
Namespace : DevExpress.Xpf.PdfViewer
Assembly : DevExpress.Xpf.PdfViewer.v25.2.dll
NuGet Package : DevExpress.Wpf.PdfViewer
public IPdfDocument Document { get; }
Public ReadOnly Property Document As IPdfDocument
| Type | Description |
|---|---|
| IPdfDocument |
A IPdfDocument object that is the current PDF document.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Document property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-pdf-viewer-replace-standard-command-with-custom-command/CS/MainWindow.xaml.cs#L45
bool CanZoomIn() {
return Control != null && Control.Document != null && Control.ZoomFactor < factors[factors.Count - 1];
}
wpf-pdf-viewer-replace-standard-command-with-custom-command/VB/MainWindow.xaml.vb#L64
Private Function CanZoomIn() As Boolean
Return Me.Control IsNot Nothing AndAlso Me.Control.Document IsNot Nothing AndAlso Me.Control.ZoomFactor < Me.factors(Me.factors.Count - 1)
End Function
See Also