Northwoods.GoWPF 2.2.4 Assembly
UndoManager Class Members
Properties  Methods 


The following tables list the members exposed by UndoManager.

Public Constructors
 NameDescription
Public ConstructorUndoManager ConstructorCreate a UndoManager that is ready to record model modifications, but that does not know about any models yet.  
Top
Public Properties
 NameDescription
Public PropertyChecksTransactionLevel Gets or sets whether this undo manager will output warnings to Trace listeners when model changes occur outside of a transaction.  
Public PropertyCompoundEdits Gets a list of all of the compound edits.  
Public PropertyCurrentEdit Gets the current compound edit for recording additional model change events.  
Public PropertyCurrentTransactionNameGets the current transaction name given by StartTransaction.  
Public PropertyEditToRedoGets the current IUndoableEdit to be redone, or null if there is none.  
Public PropertyEditToUndoGets the current IUndoableEdit to be undone, or null if there is none.  
Public PropertyIsUndoingRedoingThis property is true during a call to Undo or Redo.  
Public PropertyMaximumEditCount Gets or sets the maximum number of compound edits that this undo manager will remember.  
Public PropertyModels Gets a list of models for which this UndoManager is recording undo/redo information.  
Public PropertyNestedTransactionNames Gets a stack of ongoing transaction names.  
Public PropertyTransactionLevel Gets the current transaction level.  
Public PropertyUndoEditIndexGets the index into CompoundEdits for the current undoable edit.  
Top
Public Methods
 NameDescription
Public MethodAddModelMake sure this undo manager knows about a IDiagramModel for which it is receiving model Changed event notifications.  
Public MethodCanRedoThis predicate is true when one can call Redo.  
Public MethodCanUndoThis predicate is true when one can call Undo.  
Public MethodClearClear all of the UndoManager.CompoundEdits and reset all other state.  
Public MethodCommitTransactionJust call EndTransaction, committing the current transaction, with the presentation name for the transaction.  
Public MethodFindPrimaryObjectGiven an IUndoableEdit return an edited object that represents what was modified.  
Public MethodHandleModelChangedCreate an IUndoableEdit for a Changed event.  
Public MethodRedoRestore the state of some models to after the current IUndoableEdit.  
Public MethodRemoveModel Call this method to inform this undo manager that it no longer will be notified of model Changed events.  
Public MethodRollbackTransactionJust call EndTransaction, rolling back the current transaction.  
Public MethodStartTransactionBegin a transaction, where the changes are held by a UndoManager.CompoundEdit.  
Public MethodToString For debugging.  
Public MethodUndoRestore the state of some models to before the current IUndoableEdit.  
Top
Protected Methods
 NameDescription
Protected MethodCommitCompoundEditThis method is called by EndTransaction when committing a compound edit.  
Protected MethodEndTransaction Stop the current transaction, either rolling it back or committing it.  
Protected MethodSkipEventThis predicate is responsible for deciding if a ModelChangedEventArgs is not interesting enough to be recorded.  
Top
See Also

Reference

UndoManager Class
Northwoods.GoXam.Model Namespace

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback