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

Undoes multiple document-history actions through a selected undo-stack index.

Definition

Constructors

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

C#
public MultipleUndoCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose history is undone.

Methods

Undoes each history action from the newest entry through the supplied zero-based undo-stack index. Layout updates are suspended while the sequence runs.

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

A value convertible to the zero-based index of the last undo entry to execute.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Raises DocumentHistoryChanged for the associated document.

C#
public virtual void OnDocumentHistoryChanged(EventArgs e)
Parameters:eEventArgs

Event data for the history change.

Events

Occurs when the editor's document changes or its history records or changes an action, executes undo or redo, or clears.

C#
public event EventHandler DocumentHistoryChanged