Class
PdfViewerNavigateToPageCommand

Represents a command that navigates to a specific page in the PDF document by page index. This command allows direct navigation to any page within the document bounds.

Definition

Constructors

PdfViewerNavigateToPageCommand()

Declaration

cs-api-definition
public PdfViewerNavigateToPageCommand()

Methods

CanExecute(object)

Determines whether the navigate to page command can be executed.

Declaration

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

Parameters

parameter

object

The page index parameter as an int.

Returns

bool

true if the document has pages and the parameter is a valid integer; otherwise, false.

Overrides PdfViewerCommand.CanExecute(object)

Execute(object)

Executes the navigate to page command to go to the specified page index.

Declaration

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

Parameters

parameter

object

The page index to navigate to as an int.

Overrides PdfViewerCommand.Execute(object)