閱讀英文

共用方式為


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

event EventHandler<TextUndoRedoEventArgs> UndoRedoHappened

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

See Also

Reference

ITextUndoHistory Interface

Microsoft.VisualStudio.Text.Operations Namespace