PdfZoomMode Enum
Definition
Describes how the Avalonia.Controls.PdfViewer sizes pages to the viewport.
public enum PdfZoomMode
Fields
| Name | Description |
|---|---|
| ActualSize | Resets the zoom to 100% (actual size). Setting this value behaves as a one-shot command: the effective mode reverts to Avalonia.Controls.PdfZoomMode.Manual afterwards. |
| FitHeight | The page height is scaled to fill the viewport height. |
| FitPage | The whole page is scaled to fit within the viewport. |
| FitWidth | The page width is scaled to fill the viewport width. |
| Manual | The zoom level is set explicitly via Avalonia.Controls.PdfViewer.ZoomLevel and is not recalculated when the viewport resizes. |
ActualSize Field
Resets the zoom to 100% (actual size). Setting this value behaves as a one-shot command: the effective mode reverts to Avalonia.Controls.PdfZoomMode.Manual afterwards.
public Avalonia.Controls.PdfZoomMode ActualSize
FitHeight Field
The page height is scaled to fill the viewport height.
public Avalonia.Controls.PdfZoomMode FitHeight
FitPage Field
The whole page is scaled to fit within the viewport.
public Avalonia.Controls.PdfZoomMode FitPage
FitWidth Field
The page width is scaled to fill the viewport width.
public Avalonia.Controls.PdfZoomMode FitWidth
Manual Field
The zoom level is set explicitly via Avalonia.Controls.PdfViewer.ZoomLevel and is not recalculated when the viewport resizes.
public Avalonia.Controls.PdfZoomMode Manual