Northwoods.GoSilverlight 1.3.5 Assembly
UndoManager Class Members
See Also  Properties  Methods  Send Feedback
Northwoods.GoXam.Model Namespace : UndoManager Class


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 Northwoods.GoXam.Model.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 Northwoods.GoXam.Model.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

© 2012 All Rights Reserved.