[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.Documents.DocumentHistory

DocumentHistory Class

Manages the history of actions performed in a document, and provides undo and redo for this actions.

Inheritance
DocumentHistory
Namespace: C1.WPF.RichTextBox.Documents
Assembly: C1.WPF.RichTextBox.dll
Syntax
public class DocumentHistory

Properties

Name Description
CanRedo

Returns whether there is an action to redo.

CanUndo

Returns whether there is an action to undo.

Ignore

Gets or sets a value that indicates whether the action is stored in DocumentHistory or not when change the document.

Methods

Name Description
BeginGroup()

Begin an action group, all actions performed in a group are undone together.

Clear()

Clear the history of actions.

EndGroup()

End an action group, see BeginGroup().

Redo()

Redo the last undone action.

Undo()

Undo the last action performed on the document.

Events

Name Description
HistoryChanged

Fired when the history changes, that is, the list of actions to undo or redo changed.