Udostępnij za pośrednictwem


ITextUndoHistory.UndoRedoHappened Event

Definition

Notifies consumers when an undo or a redo has happened on this history.

public:
 event EventHandler<Microsoft::VisualStudio::Text::Operations::TextUndoRedoEventArgs ^> ^ UndoRedoHappened;
event EventHandler<Microsoft.VisualStudio.Text.Operations.TextUndoRedoEventArgs> UndoRedoHappened;
member this.UndoRedoHappened : EventHandler<Microsoft.VisualStudio.Text.Operations.TextUndoRedoEventArgs> 
Event UndoRedoHappened As EventHandler(Of TextUndoRedoEventArgs) 

Event Type

Remarks

The sender object is the ITextUndoHistory that originated it, and the event arguments are empty. The UndoHistory raises this event whenever an Undo() or Redo() is initiated properly, regardless of whether one of the particular transactions or primitives fails to perform that undo.

Applies to