Skip to main content

ShowFloatingObjectLayoutOptionsFormCommand.ForceExecute(ICommandUIState) Method

Executes the command specifying the UI state explicitly.

Namespace: DevExpress.XtraRichEdit.Commands

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public override void ForceExecute(
    ICommandUIState state
)

Parameters

Name Type Description
state ICommandUIState

An object which implements the ICommandUIState interface.

Remarks

The Command.Execute method performs the UI state check implicitly, so you cannot bring the command to action arbitrarily. Unlike the Execute method, the ForceExecute method enables you to check the UI state for the command, and then deliberately and unconditionally start its execution, or decline it.

See ShowFontFormCommand.ForceExecute topic, for a use example.

See Also