.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.
A newer version of this page is available. Switch to the current version.

RichEditCommand Class

Represents a base class for RichEdit commands.

Namespace: DevExpress.XtraRichEdit.Commands

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


public abstract class RichEditCommand :

The following members accept/return RichEditCommand objects:

Library Related API Members
WinForms Controls RichEditControl.CreateCommand(RichEditCommandId)
WPF Controls RichEditControl.CreateCommand(RichEditCommandId)
Office File API IRichEditCommandFactoryService.CreateCommand(RichEditCommandId)


The command pattern enables you to separate the object that invokes the operation from the one that knows how to perform it. A RichEditCommand class holds the information on the data used in user interface elements to which the command is attached (Command.Description, Command.Image, Command.LargeImage and Command.MenuCaption).

The command’s Execute method performs the actions that are associated with the command.

The Execute method may result in no action being taken if the ICommandUIState does not allow command execution. However, it may sometimes be required to perform an action even if the command cannot be executed. The ForceExecute method, which ignores the command state, should be used in this instance.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RichEditCommand class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.


Show 355 items
DevExpress.Utils.Commands.ControlCommand<IRichEditControl, RichEditCommandId, DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
See Also