UndoManager Class

 

Helper class which wraps the Visual Studio shell's undo manager.

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

System.Object
  Microsoft.VisualStudio.Modeling.Shell.UndoManager

[CLSCompliantAttribute(false)]
public class UndoManager : IOleCommandTarget, IVsLinkedUndoClient, 
	IDisposable

NameDescription
System_CAPS_pubmethodUndoManager(IServiceProvider)

Create an UndoManager that wraps a new instance of IOleUndoManager.

System_CAPS_pubmethodUndoManager(IServiceProvider, IOleUndoManager)

Create a new UndoManager with the specified service provider and IOleUndoManager.

NameDescription
System_CAPS_pubpropertyIsDirty

System_CAPS_pubpropertyVSUndoManager

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.

NameDescription
System_CAPS_pubmethodAdd(IOleUndoUnit)

Adds an undo unit to the stack and updates the UI.

System_CAPS_pubmethodDiscardUndoStacks(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.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the UndoManager class.

System_CAPS_protmethodDispose(Boolean)

Disposes the state of this object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExec(Guid, UInt32, UInt32, IntPtr, IntPtr)

Implementation of IOleCommandTarget interface. Passes the call to the wrapped IOleUndoManager.

System_CAPS_protmethodFinalize()

Finalizer.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnInterveningUnitBlockingLinkedUndo()

Indicates that the undo manager is blocking another undo manager from executing a linked action.

System_CAPS_pubmethodQueryStatus(Guid, UInt32, OLECMD[], IntPtr)

Implementation of IOleCommandTarget interface. Passes call to the wrapped IOleUndoManager instance.

System_CAPS_pubmethodToString()

(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.

Return to top
Show: