Skip to main content
A newer version of this page is available. .

RichEditCommand Class

Represents a base class for RichEdit commands.

Namespace: DevExpress.XtraRichEdit.Commands

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

Declaration

public abstract class RichEditCommand :
    RichEditCommandBase<XtraRichEditStringId>

The following members return RichEditCommand objects:

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

Remarks

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.

Inheritance

Show 350 items
Object
Command
DevExpress.Utils.Commands.ControlCommand<IRichEditControl, RichEditCommandId, DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
DevExpress.XtraRichEdit.Commands.RichEditCommandBase<DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
RichEditCommand
See Also