C# Class ICSharpCode.TextEditor.Undo.UndoStack

This class implements an undo stack
显示文件 Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Public Properties

Property Type Description
TextEditorControl TextEditorControlBase

Public Methods

Method Description
AssertNoUndoGroupOpen ( ) : void
ClearAll ( ) : void

Clears both the undo and redo stack.

ClearRedoStack ( ) : void

Call this method, if you want to clear the redo stack

EndUndoGroup ( ) : void
Push ( IUndoableOperation operation ) : void

Call this method to push an UndoableOperation on the undostack, the redostack will be cleared, if you use this method.

Redo ( ) : void

Call this method to redo the last undone operation

StartUndoGroup ( ) : void
Undo ( ) : void

Call this method to undo the last operation on the stack

Protected Methods

Method Description
OnActionRedone ( ) : void

OnActionUndone ( ) : void

Method Details

AssertNoUndoGroupOpen() public method

public AssertNoUndoGroupOpen ( ) : void
return void

ClearAll() public method

Clears both the undo and redo stack.
public ClearAll ( ) : void
return void

ClearRedoStack() public method

Call this method, if you want to clear the redo stack
public ClearRedoStack ( ) : void
return void

EndUndoGroup() public method

public EndUndoGroup ( ) : void
return void

OnActionRedone() protected method

protected OnActionRedone ( ) : void
return void

OnActionUndone() protected method

protected OnActionUndone ( ) : void
return void

Push() public method

Call this method to push an UndoableOperation on the undostack, the redostack will be cleared, if you use this method.
public Push ( IUndoableOperation operation ) : void
operation IUndoableOperation
return void

Redo() public method

Call this method to redo the last undone operation
public Redo ( ) : void
return void

StartUndoGroup() public method

public StartUndoGroup ( ) : void
return void

Undo() public method

Call this method to undo the last operation on the stack
public Undo ( ) : void
return void

Property Details

TextEditorControl public_oe property

public TextEditorControlBase TextEditorControl
return TextEditorControlBase