GraphUndoManager<T> Class

 

This class wraps the IOleUndoManager from Visual Studio and adds undo unit merging.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

System.Object
  Microsoft.VisualStudio.GraphModel.GraphUndoManager<T>

public abstract class GraphUndoManager<T>
where T : GraphUndoUnit

Type Parameters

T

The type of GraphUndoUnit this UndoManager accepts.

NameDescription
System_CAPS_protpropertyRedoStack

Gets the current entries on the redo stack, ordered most to least recent.

System_CAPS_protpropertyUndoStack

Gets the current entries on the undo stack, ordered most to least recent.

NameDescription
System_CAPS_protmethodAdd(T)

Pushes the specified undo unit onto the undo stack.

System_CAPS_pubmethodAddOrMerge(T)

Adds an undo unit to the undo stack, potentially merging it with other undo units on the stack or dropping it if it is empty. If it has UndoOption.AddForce, it will always be added, even if it is empty. This is useful for compound operations such as moving nodes, drag/drop or label editing where you merge a series of undo units into one atomic unit and you must have a sure way of starting with the Add unit even if it is at first empty.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

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: