Export (0) Print
Expand All

GraphUndoManager<T> Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

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

public abstract class GraphUndoManager<T>
where T : GraphUndoUnit

Type Parameters

T

The type of GraphUndoUnit this UndoManager accepts.

The GraphUndoManager<T> type exposes the following members.

  NameDescription
Protected propertyRedoStackGets the current entries on the redo stack, ordered most to least recent.
Protected propertyUndoStackGets the current entries on the undo stack, ordered most to least recent.
Top

  NameDescription
Protected methodAddPushes the specified undo unit onto the undo stack.
Public methodAddOrMergeAdds 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.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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