ITextUndoHistory.UndoRedoHappened Event

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

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)


Event UndoRedoHappened As EventHandler(Of TextUndoRedoEventArgs)
event EventHandler<TextUndoRedoEventArgs> UndoRedoHappened
 event EventHandler<TextUndoRedoEventArgs^>^ UndoRedoHappened {
    void add (EventHandler<TextUndoRedoEventArgs^>^ value);
    void remove (EventHandler<TextUndoRedoEventArgs^>^ value);
abstract UndoRedoHappened : IEvent<EventHandler<TextUndoRedoEventArgs>,
JScript does not support events.


The sender object is the ITextUndoHistory that originated it, and the event arguments are empty. This event occurs whenever an Undo or Redo is initiated properly, even though one of the particular transactions or primitives may have failed to perform the operation.

.NET Framework Security

See Also


ITextUndoHistory Interface

Microsoft.VisualStudio.Text.Operations Namespace