TextDocumentHistory
Class
Represents a history in the text document.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.History
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
C#
public class TextDocumentHistory
Inheritance: objectTextDocumentHistory
Constructors
Initializes a new instance of the TextDocumentHistory class.
Properties
Gets a value indicating whether the history can be redone.
C#
public bool CanRedo { get; }
Gets a value indicating whether the history can be undone.
C#
public bool CanUndo { get; }
Gets a value indicating whether this instance is in undo group.
C#
public bool IsInUndoGroup { get; }
Methods
Clears the undo/redo history stacks.
C#
public void Clear()
Called when record is executed.
C#
protected virtual void OnRecordExecuted(TextChangeHistoryAction historyAction, bool isMerged)
Called when record is executing.
C#
protected virtual void OnRecordExecuting()
Called when action is redone.
C#
protected virtual void OnRedoExecuted(TextChangeHistoryAction historyAction)
Called when action is being redone.
C#
protected virtual void OnRedoExecuting(TextChangeHistoryAction historyAction)
Called when action is undone.
C#
protected virtual void OnUndoExecuted(TextChangeHistoryAction historyAction)
Called when action is being undone.
C#
protected virtual void OnUndoExecuting(TextChangeHistoryAction historyAction)