Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DocumentViewerControl.SetPageNumberCommand Property

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

Namespace: DevExpress.Xpf.DocumentViewer

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

NuGet Package: DevExpress.Wpf.DocumentViewer.Core

#Declaration

public ICommand SetPageNumberCommand { get; }

#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