Command.CreateDefaultCommandUIState() Method

Creates an object defining the command state for the current command.

Namespace: DevExpress.Utils.Commands

Assembly: DevExpress.Data.v20.1.dll

Declaration

public virtual ICommandUIState CreateDefaultCommandUIState()
Public Overridable Function CreateDefaultCommandUIState As ICommandUIState

Returns

Type Description
ICommandUIState

An ICommandUIState interface that defines the command state.

Remarks

Use the CreateDefaultCommandUIState method to create an object that exposes the ICommandUIState interface for a particular command. You can use the created object to obtain the current command state by calling the Command.UpdateUIState method. Then, you can check the command state and modify it if necessary, and call the Command.ForceExecute method to perform the action specified by the command.

See Also