Undo stack implementation.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public sealed class UndoStack : INotifyPropertyChanged
Public NotInheritable Class UndoStack _ Implements INotifyPropertyChanged
public ref class UndoStack sealed : INotifyPropertyChanged
Members
All Members | Constructors | Methods | Properties | Events | |
Icon | Member | Description |
---|---|---|
UndoStack()()()() | Initializes a new instance of the UndoStack class | |
AcceptChanges |
Gets if the undo stack currently accepts changes.
Is false while an undo action is running.
| |
CanRedo |
Gets if there are actions on the redo stack.
Use the PropertyChanged event to listen to changes of this property.
| |
CanUndo |
Gets if there are actions on the undo stack.
Use the PropertyChanged event to listen to changes of this property.
| |
ClearAll()()()() |
Clears both the undo and redo stack.
| |
ClearRedoStack()()()() |
Call this method, if you want to clear the redo stack
| |
DiscardOriginalFileMarker()()()() |
Discards the current "original" marker.
| |
EndUndoGroup()()()() |
Stops grouping changes.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
IsOriginalFile |
Gets whether the document is currently in its original state (no modifications).
| |
LastGroupDescriptor |
If an undo group is open, gets the group descriptor of the current top-level
undo group.
If no undo group is open, gets the group descriptor from the previous undo group.
| |
MarkAsOriginalFile()()()() |
Marks the current state as original. Discards any previous "original" markers.
| |
PropertyChanged |
Is raised when a property (CanUndo, CanRedo) changed.
| |
Push(IUndoableOperation) |
Call this method to push an UndoableOperation on the undostack.
The redostack will be cleared if you use this method.
| |
PushOptional(IUndoableOperation) |
Call this method to push an UndoableOperation on the undostack.
However, the operation will be only stored if the undo group contains a
non-optional operation.
Use this method to store the caret position/selection on the undo stack to
prevent having only actions that affect only the caret and not the document.
| |
Redo()()()() |
Call this method to redo the last undone operation
| |
SizeLimit |
Gets/Sets the limit on the number of items on the undo stack.
| |
StartContinuedUndoGroup(Object) |
Starts grouping changes, continuing with the previously closed undo group if possible.
Maintains a counter so that nested calls are possible.
If the call to StartContinuedUndoGroup is a nested call, it behaves exactly
as StartUndoGroup()()()(), only top-level calls can continue existing undo groups.
| |
StartUndoGroup()()()() |
Starts grouping changes.
Maintains a counter so that nested calls are possible.
| |
StartUndoGroup(Object) |
Starts grouping changes.
Maintains a counter so that nested calls are possible.
| |
ToString()()()() | (Inherited from Object.) | |
Undo()()()() |
Call this method to undo the last operation on the stack
|
Inheritance Hierarchy
Object | |
UndoStack |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238