Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ToggleListCommandBase.UpdateUIState(ICommandUIState) Method

Anticipates a command’s execution, by assigning a new status to the command in the context of its current applicability to the application user interface.

Namespace: DevExpress.XtraRichEdit.Commands

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public override void UpdateUIState(
    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

Before assessing the availability of a command, restore its default status against the overall context of the application user interface (imposed by the Command.CreateDefaultCommandUIState method), using the UpdateUIState method.

To evaluate the current applicability of a command, check the ICommandUIState property values.

Next, trigger a command’s execution by calling the ToggleListCommandBase.ForceExecute method.

See Also