ClassTextDocumentHistory
Represents a history in the text document.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.History
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
public class TextDocumentHistory
Inheritance: objectTextDocumentHistory
Constructors
TextDocumentHistory(TextDocument)
Initializes a new instance of the TextDocumentHistory class.
Declaration
public TextDocumentHistory(TextDocument document)
Parameters
document
Properties
CanRedo
Gets a value indicating whether the history can be redone.
CanUndo
Gets a value indicating whether the history can be undone.
Depth
Gets or sets the depth of the history.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")]
public int Depth { get; set; }
Property Value
IsInUndoGroup
Gets a value indicating whether this instance is in undo group.
Methods
OnRecordExecuted(TextChangeHistoryAction, bool)
Called when record is executed.
Declaration
protected virtual void OnRecordExecuted(TextChangeHistoryAction historyAction, bool isMerged)
Parameters
historyAction
isMerged
OnRecordExecuting()
Called when record is executing.
Declaration
protected virtual void OnRecordExecuting()
OnRedoExecuted(TextChangeHistoryAction)
Called when action is redone.
Declaration
protected virtual void OnRedoExecuted(TextChangeHistoryAction historyAction)
Parameters
historyAction
OnRedoExecuting(TextChangeHistoryAction)
Called when action is being redone.
Declaration
protected virtual void OnRedoExecuting(TextChangeHistoryAction historyAction)
Parameters
historyAction
OnUndoExecuted(TextChangeHistoryAction)
Called when action is undone.
Declaration
protected virtual void OnUndoExecuted(TextChangeHistoryAction historyAction)
Parameters
historyAction
OnUndoExecuting(TextChangeHistoryAction)
Called when action is being undone.
Declaration
protected virtual void OnUndoExecuting(TextChangeHistoryAction historyAction)
Parameters
historyAction