The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
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.
.NET Core 3.0+

RichEditMenuItemSimpleCommand.ForceExecute(ICommandUIState) Method

Performs a command action regardless of a command state.

Namespace: DevExpress.XtraRichEdit.Commands

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

Declaration

public override void ForceExecute(
    ICommandUIState state
)
Public Overrides Sub ForceExecute(
    state As ICommandUIState
)
public override void ForceExecute(
    ICommandUIState state
)
Public Overrides Sub ForceExecute(
    state As ICommandUIState
)

Parameters

Name Type Description
state ICommandUIState

An ICommandUIState interface defining the command state.

Parameters

Name Type Description
state ICommandUIState

An ICommandUIState interface defining the command state.

Remarks

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


using DevExpress.Utils.Commands;
// ...
ICommandUIState state = cmd.CreateDefaultCommandUIState();
cmd.UpdateUIState(state);
// check command state 
if (state.Enabled)
{
    cmd.ForceExecute(state);
}
See Also