Class
PdfViewerFitDocumentToWidthCommand

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

PdfViewerFitDocumentToWidthCommand()

Declaration

cs-api-definition
public PdfViewerFitDocumentToWidthCommand()

Methods

CanExecute(object)

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

Declaration

cs-api-definition
public override bool CanExecute(object parameter)

Parameters

parameter

object

The command parameter.

Returns

bool

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

Overrides PdfViewerCommand.CanExecute(object)

Execute(object)

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

Declaration

cs-api-definition
public override void Execute(object parameter)

Parameters

parameter

object

The command parameter.

Overrides PdfViewerCommand.Execute(object)