Back to Devexpress

DocumentViewerControl.SetPageNumberCommand Property

wpf-devexpress-dot-xpf-dot-documentviewer-dot-documentviewercontrol-7eccc6a1.md

latest1.6 KB
Original Source

DocumentViewerControl.SetPageNumberCommand Property

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

Namespace : DevExpress.Xpf.DocumentViewer

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

NuGet Package : DevExpress.Wpf.DocumentViewer.Core

Declaration

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

Property Value

TypeDescription
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.

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

See Also

DocumentViewerControl Class

DocumentViewerControl Members

DevExpress.Xpf.DocumentViewer Namespace