Compartilhar via


GraphUndoUnit(Graph, GraphUpdatedEventArgs) Constructor

Definition

Construct an undo unit from the changes that are about to be committed in the given GraphUpdatedEventArgs. This has to be called during the Graph Updating, the Updated event is too late since we have to be able to save the old values before the changes are committed in order to be able to undo those changes.

public:
 GraphUndoUnit(Microsoft::VisualStudio::GraphModel::Graph ^ graph, Microsoft::VisualStudio::GraphModel::GraphUpdatedEventArgs ^ changes);
public GraphUndoUnit (Microsoft.VisualStudio.GraphModel.Graph graph, Microsoft.VisualStudio.GraphModel.GraphUpdatedEventArgs changes);
new Microsoft.VisualStudio.GraphModel.GraphUndoUnit : Microsoft.VisualStudio.GraphModel.Graph * Microsoft.VisualStudio.GraphModel.GraphUpdatedEventArgs -> Microsoft.VisualStudio.GraphModel.GraphUndoUnit
Public Sub New (graph As Graph, changes As GraphUpdatedEventArgs)

Parameters

graph
Graph

Applies to