UndoUnit Class

 

Wrapper for Modeling transactions so they can be used by the shell's IOleUndoManager interface.

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::UndoUnit

[CLSCompliantAttribute(false)]
public ref class UndoUnit : IOleUndoUnit

NameDescription
System_CAPS_pubmethodUndoUnit(IServiceProvider^, Context^, TransactionCommitHandler^)

Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary.

System_CAPS_pubmethodUndoUnit(IServiceProvider^, Context^, TransactionCommitHandler^, DescriptionHandler^)

Creates an undo unit without a transaction, but with a delegate it can use to obtain the transaction later, when necessary. Also specifies a delegate that can be used to obtain the description of this action, to avoid a commit.

System_CAPS_pubmethodUndoUnit(IServiceProvider^, Context^, TransactionItem^)

Constructs a new undo unit.

NameDescription
System_CAPS_pubmethodDo(IOleUndoManager^)

Performs undo/redo based on the internal state of this undo unit. Also, undo unit is responsible for adding itself to the *opposite* stack.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetDescription(String^)

Gets a text description for this undo unit, which is displayed by the shell

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUnitType(Guid, Int32)

Used by undo manager to provide special handling for certain undo units based on their type -- we don't use this method

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOnNextAdd()

Called when a new undo unit is added on top of this one on the undo stack. We don't need to do anything here.

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: