Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

ToggleListCommandBase.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.XtraRichEdit.Commands

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public override void ForceExecute(
    ICommandUIState state
)

Parameters

Name Type Description
state ICommandUIState

An object implementing the ICommandUIState interface that defines the current status of a command in the overall context of the application user 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