Click or drag to resize
DigitalRuneUndoBuffer Class
Implements an undo/redo buffer.
Inheritance Hierarchy
SystemObject
  DigitalRune.UndoUndoBuffer

Namespace: DigitalRune.Undo
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public class UndoBuffer : INotifyPropertyChanged

The UndoBuffer type exposes the following members.

Constructors
  NameDescription
Public methodUndoBuffer
Initializes a new instance of the UndoBuffer class.
Top
Methods
  NameDescription
Public methodAdd
Adds an operation to the undo buffer.
Public methodBeginUndoGroup
Begins a new undo group.
Public methodClearAll
Clears the undo buffer.
Public methodEndUndoGroup
Ends an undo group and puts the group of operations onto the UndoBuffer.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnOperationRedone
Raises the OperationRedone event.
Protected methodOnOperationUndone
Raises the OperationUndone event.
Protected methodOnPropertyChanged
Raises the PropertyChanged event.
Public methodRedo
Redoes the last undone operation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUndo
Undoes the last operation.
Top
Properties
  NameDescription
Public propertyAcceptChanges
Gets or sets a value indicating whether this UndoBuffer accepts changes.
Public propertyCanRedo
Gets a value indicating whether there are operations on the redo stack.
Public propertyCanUndo
Gets a value indicating whether there are operations on the undo stack.
Public propertyIsUndoGroupOpen
Gets a value indicating whether an undo group is open.
Public propertyRedoStack
Gets the redo stack.
Public propertySizeLimit
Gets or sets the max number of undo steps stored in the undo buffer.
Public propertyUndoStack
Gets the undo stack.
Top
Events
  NameDescription
Public eventOperationRedone
Occurs after an operation is redone.
Public eventOperationUndone
Occurs after an operation is undone.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also