UndoManager Class
Helper class which wraps the Visual Studio shell's undo manager.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
| Name | Description | |
|---|---|---|
![]() | UndoManager(IServiceProvider^) | Create an UndoManager that wraps a new instance of IOleUndoManager. |
![]() | UndoManager(IServiceProvider^, IOleUndoManager^) | Create a new UndoManager with the specified service provider and IOleUndoManager. |
| Name | Description | |
|---|---|---|
![]() | IsDirty | |
![]() | VSUndoManager | This is what should be pushed to the SEID for a window frame that wants to use this undo manager. We can't wrap IOleUndoManager in a managed object because the property browser QI's for MS.VS.NativeMethods.IOleCommandTarget, which is private, so we can't implement it on this class. |
| Name | Description | |
|---|---|---|
![]() | Add(IOleUndoUnit^) | Adds an undo unit to the stack and updates the UI. |
![]() | DiscardUndoStacks(Boolean) | Throws away undo/redo stacks. If the bool is true, then in addition to discarding the undostack the routine will mark the stack as clean. |
![]() | Dispose() | Releases all resources used by the current instance of the UndoManager class. |
![]() | Dispose(Boolean) | Disposes the state of this object. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) | Implementation of IOleCommandTarget interface. Passes the call to the wrapped IOleUndoManager. |
![]() | Finalize() | Finalizer.(Overrides Object::Finalize().) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnInterveningUnitBlockingLinkedUndo() | Indicates that the undo manager is blocking another undo manager from executing a linked action. |
![]() | QueryStatus(Guid, UInt32, array<OLECMD>^, IntPtr) | Implementation of IOleCommandTarget interface. Passes call to the wrapped IOleUndoManager instance. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


