Skip to main content

Command.ForceExecute(ICommandUIState) Method

Performs a command action regardless of a command state.

Namespace: DevExpress.Utils.Commands

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data


public abstract void ForceExecute(
    ICommandUIState state


Name Type Description
state ICommandUIState

An ICommandUIState interface defining the command state.


The following code snippet illustrates the typical use of the ForceExecute method.

using DevExpress.Utils.Commands;
// ...
ICommandUIState state = cmd.CreateDefaultCommandUIState();
// check command state 
if (state.Enabled)

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ForceExecute(ICommandUIState) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also