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
Property Value
Type | Description |
---|---|
PdfZoomMode | A PdfZoomMode enumeration value. |
Available values:
Name | Description |
---|---|
FitPageLevel | Sets the largest zoom level that will allow the document page to be displayed without any scroll bars appearing. |
FitWidth | Sets the largest zoom level that will allow the document page to be displayed without a horizontal scroll bar appearing. |
FitHeight | Sets the largest zoom level that will allow the document page to be displayed without a vertical scroll bar appearing. |
PagePreferredZoom | Sets the zoom level according to the document’s PdfPage.PreferredZoom property value. |
Custom | Sets the custom document zoom factor according to the PdfViewerControl.CurrentZoomFactor property value. |
Auto | Sets the zoom level depending on the PdfViewerControl.PdfViewMode property value: 1 if the PdfViewerControl.PdfViewMode property is set to PdfViewMode.Continuous; PdfZoomMode.FitPageLevel if the PdfViewerControl.PdfViewMode property is set to PdfViewMode.SinglePage. |
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.