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

Represents a command that fits the current page to the width of the PDF viewer.

Definition

Constructors

C#
public PdfViewerFitPageToWidthCommand()

Methods

Defines the method that determines whether the command can execute in its current state.

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

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns:

bool

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

Overrides: PdfViewerCommand.CanExecute(object)

Defines the method to be called when the command is invoked.

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

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Overrides: PdfViewerCommand.Execute(object)