PdfViewerCommand.ForceExecute(ICommandUIState) Method
Forces the application user interface to ignore the current applicability of a command, and trigger its execution despite the risks.
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 | ICommand |
An object implementing the ICommand |
#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.