Partager via


GraphUndoManager Class

Definition

Important

This API is not CLS-compliant.

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

public ref class GraphUndoManager abstract
[System.CLSCompliant(false)]
public abstract class GraphUndoManager
public abstract class GraphUndoManager
[<System.CLSCompliant(false)>]
type GraphUndoManager = class
type GraphUndoManager = class
Public MustInherit Class GraphUndoManager
Inheritance
GraphUndoManager
Attributes

Constructors

GraphUndoManager()

Properties

RedoStack

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

UndoStack

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

Methods

Add(IOleUndoUnit)

Pushes the specified undo unit onto the undo stack.

AddOrMerge(IMergeableUndo)

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

Applies to