UndoManager Class

 

Provides the functionality for undo and redo operations.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling::UndoManager

public ref class UndoManager : IDisposable

NameDescription
System_CAPS_pubmethodUndoManager(Context^)

constructor.

System_CAPS_pubmethodUndoManager(Store^)

constructor.

NameDescription
System_CAPS_protpropertyCanUndoRedoCallbackCollection

System_CAPS_pubpropertyContext

The Context that contains the UndoManager

System_CAPS_pubpropertyInRedo

Return whether are not the undo manager is in the middle of a redo or not.

System_CAPS_pubpropertyInUndo

Return whether are not the undo manager is in the middle of an undo or not.

System_CAPS_pubpropertyMaxUndoableTransactions

Maximum number of undo items visible on the undo stack

System_CAPS_pubpropertyRedoableTransactions

List of redoable TransactionItems maintained by the UndoManager.

System_CAPS_pubpropertyRedoCount

Number of items in redo stack

System_CAPS_pubpropertyStore

The Store that contains the UndoManager

System_CAPS_pubpropertyTopmostUndoableTransaction

Return topmost transaction ID in undo stact

System_CAPS_pubpropertyUndoableTransactions

List of undoable TransactionItems maintained by the UndoManager.

System_CAPS_pubpropertyUndoCount

Number of items in undo stack.

System_CAPS_pubpropertyUndoState

The state of Undo.

NameDescription
System_CAPS_pubmethodAddCanUndoRedoCallback(CanUndoRedoCallback^)

Add CanUndoRedo voter.

System_CAPS_pubmethodAddUndoableAction(Transaction^)

Add an undoable action to the undo stack. This will clear the redo stack.

System_CAPS_pubmethodDispose()

Dispose method

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Finalizer(Overrides Object::Finalize().)

System_CAPS_pubmethodFlush()

Flush the undo and redo stacks. If we are in the middle of a transaction, throw an exception.

System_CAPS_pubmethodFlushRedoStack()

Clears the redo stack.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRedo()

Redo the actions of the topmost transaction on the redo stack.

System_CAPS_pubmethodRedo(Guid)

Redo the actions committed in the transaction whose id is passed in. Make sure the id passed in is the transaction that is on top of the stack. Otherwise throw an exception.

System_CAPS_pubmethodRedoAllPossible()

Redo all possible transactions on redo stack.

System_CAPS_pubmethodRemoveCanUndoRedoCallback(CanUndoRedoCallback^)

Remove CanUndoRedo voter.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUndo()

Undo the actions of the topmost transaction on undo stack.

System_CAPS_pubmethodUndo(Guid)

Undo the actions committed in the transaction whose id is passed in. Make sure the id passed in is the transaction that is on top of the stack. Otherwise throw an exception.

System_CAPS_pubmethodUndoAllPossible()

Undo all transactions in undo stack that can be undone.

NameDescription
System_CAPS_pubeventRedoStackFlushed

Allows clients to receive an event when the redo stack is flushed

System_CAPS_pubeventUndoItemAdded

Event that is fired every time an undo item is added to the undo stack

System_CAPS_pubeventUndoItemDiscarded

Event that is fired every time an undo item is discarded from the undo stack because the stack size exceeded the maximum number of undo items permitted.

System_CAPS_pubeventUndoStackFlushed

Allows clients to receive an event when the undo stack is flushed

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: