A newer version of this page is available. Switch to the current version.

DocumentViewerControl.SetPageNumberCommand Property

Returns a command that sets the number of a currently displayed page.

Namespace: DevExpress.Xpf.DocumentViewer

Assembly: DevExpress.Xpf.DocumentViewer.v19.2.Core.dll

Declaration

public ICommand SetPageNumberCommand { get; }
Public ReadOnly Property SetPageNumberCommand As ICommand

Property Value

Type Description
ICommand

An object implementing the ICommand interface that defines the command.

Remarks

To display a certain page, specify its number as a command's parameter.

if (DxPdfViewerControl.SetPageNumberCommand.CanExecute(2)) {
    DxPdfViewerControl.SetPageNumberCommand.Execute(2);
}
See Also