Skip to main content

PdfZoomMode Enum

Definition​

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Describes how the Avalonia.Controls.PdfViewer sizes pages to the viewport.

public enum PdfZoomMode

Inheritance: Enum -> PdfZoomMode

Fields​

NameDescription
ActualSizeResets 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.
FitHeightThe page height is scaled to fill the viewport height.
FitPageThe whole page is scaled to fit within the viewport.
FitWidthThe page width is scaled to fill the viewport width.
ManualThe 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