New to Telerik UI for WinForms? Start a free 30-day trial

Reverts the latest action in the editor's document history.

Definition

Constructors

Initializes the command for the specified editor and observes its document history.

C#
public UndoCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose document history is undone.

Properties

Gets Always so history actions can be undone in protected documents.

C#
protected override CanExecuteBehaviorInProtectedDocument CanExecuteBehaviorInProtectedDocument { get; }

Overrides: RichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocument

Gets a value indicating that undo is allowed in read-only ranges.

C#
protected override bool CanExecuteInReadOnlyRange { get; }

Overrides: RichTextBoxCommandBase.CanExecuteInReadOnlyRange

Methods

Gets whether the current document history contains an action that can be undone.

C#
protected override bool CanExecuteOverride(object parameter)
Parameters:parameterobject

Not used.

Returns:

bool

true when the document can undo; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Reverts the latest action in the editor's document history.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

Not used.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)