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

PdfSetPageNumberCommand.CreateDefaultCommandUIState() Method

Creates an object defining the command state for the current command.

Namespace: DevExpress.XtraPdfViewer.Commands

Assembly: DevExpress.XtraPdfViewer.v24.2.dll

NuGet Package: DevExpress.Win.PdfViewer

#Declaration

public override ICommandUIState CreateDefaultCommandUIState()

#Returns

Type Description
ICommandUIState

An ICommandUIState interface that defines the command state.

#Remarks

Use the CreateDefaultCommandUIState method to create an object that exposes the ICommandUIState interface for a particular command. You can use the created object to obtain the current command state by calling the Command.UpdateUIState method. Then, you can check the command state and modify it if necessary, and call the PdfSetPageNumberCommand.ForceExecute method to perform the action specified by the command.

See Also