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)
Syntax
'Dichiarazione
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>,
TextUndoRedoEventArgs>
JScript does not support events.
Remarks
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.