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.ForceExecute(ICommandUIState) Method

Performs a command action regardless of a command state.

Namespace: DevExpress.XtraPdfViewer.Commands

Assembly: DevExpress.XtraPdfViewer.v24.2.dll

NuGet Package: DevExpress.Win.PdfViewer

#Declaration

public override void ForceExecute(
    ICommandUIState state
)

#Parameters

Name Type Description
state ICommandUIState

An object which implements the ICommandUIState interface.

#Remarks

Call the ForceExecute method to unconditionally trigger a command’s execution.

To avoid arbitrary execution of commands, use the Command.Execute method that automatically evaluates whether or not the command is applicable in the current context of the application user interface.

See Also