PdfViewerControl.ZoomMode Property
Gets or sets the zoom mode that is applied to a PDF document. This is a dependency property.
Namespace: DevExpress.UI.Xaml.Controls
Assembly: DevExpress.UI.Xaml.Controls.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
#Declaration
public PdfZoomMode ZoomMode { get; set; }
#Property Value
Type | Description |
---|---|
Pdf |
A Pdf |
Available values:
Name | Description |
---|---|
Fit |
Sets the largest zoom level that will allow the document page to be displayed without any scroll bars appearing. |
Fit |
Sets the largest zoom level that will allow the document page to be displayed without a horizontal scroll bar appearing. |
Fit |
Sets the largest zoom level that will allow the document page to be displayed without a vertical scroll bar appearing. |
Page |
Sets the zoom level according to the document’s Pdf |
Custom | Sets the custom document zoom factor according to the Pdf |
Auto | Sets the zoom level depending on the Pdf |
#Remarks
If the ZoomMode property is set to PdfZoomMode.PagePreferredZoom and the PdfViewerControl.PdfViewMode property is set to PdfViewMode.Continuous, the PdfViewerControl.CurrentZoomFactor property value is equal to the PdfPage.PreferredZoom property value of the first page in the document. Otherwise, if the PdfViewerControl.PdfViewMode property is set to PdfViewMode.SinglePage, the PdfViewerControl.CurrentZoomFactor property value is equal to the PdfPage.PreferredZoom property value of the current page in the document.