New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a command that fits the PDF document to the width of the viewer. This command adjusts the zoom level so that the entire width of the document page is visible.

Definition

Constructors

C#
public PdfViewerFitDocumentToWidthCommand()

Methods

Determines whether the fit document to width command can be executed.

C#
public override bool CanExecute(object parameter)
Parameters:parameterobject

The command parameter.

Returns:

bool

true if the command can be executed; otherwise, false.

Overrides: PdfViewerCommand.CanExecute(object)

Executes the fit document to width command to adjust the zoom level so the document width fits the viewer.

C#
public override void Execute(object parameter)
Parameters:parameterobject

The command parameter.

Overrides: PdfViewerCommand.Execute(object)