PdfViewer.ZoomMode Property
Specifies the document zoom mode.
Namespace: DevExpress.XtraPdfViewer
Assembly: DevExpress.XtraPdfViewer.v24.2.dll
NuGet Package: DevExpress.Win.PdfViewer
#Declaration
[DefaultValue(PdfZoomMode.ActualSize)]
public PdfZoomMode ZoomMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Pdf |
Actual |
A Pdf |
Available values:
Name | Description |
---|---|
Custom | The document zoom factor is defined by the Pdf |
Actual |
Sets the document zoom factor value to 100%. |
Fit |
The document zoom factor is calculated to fit to the width of the visible content of a page. The region of the visible page content is defined by the bleed box (see section 14. |
Fit |
Sets the document zoom factor value to fit to the width of the widest page in a document. If the bleed box is smaller than the crop box, the Fit |
Page |
Sets the document zoom factor value to fit to the widest or highest page in a document. |
#Remarks
private void Form1_Load(object sender, EventArgs e)
{
this.pdfViewer.LoadDocument(@"..\..\Demo.pdf");
this.pdfViewer.ZoomMode = DevExpress.XtraPdfViewer.PdfZoomMode.FitToWidth;
}