Command Class
Represents a command.
Namespace: DevExpress.Utils.Commands
Assembly: DevExpress.Data.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
Remarks
The command pattern enables you to separate the object that invokes the operation from the one that knows how to perform it. A Command class holds the information on the command source (Command.CommandSourceType and data used in user interface elements to which the command is attached (Command.Description, Command.Image, Command.LargeImage and Command.MenuCaption).
The command’s Command.Execute method performs the actions that are associated with the command.
The Execute method may result in no action taken if the ICommandUIState does not allow the command execution. But sometimes it may be required to perform an action even if the command cannot be executed. The Command.ForceExecute method, which ignores the command state, should be used in this instance.
For information and examples on commands in the XtraRichEdit Suite review the Commands document.