ITextUndoHistory.UndoRedoHappened 事件

当对此历史记录执行撤消或重做操作时,向使用者发出通知。

命名空间:  Microsoft.VisualStudio.Text.Operations
程序集:  Microsoft.VisualStudio.Text.Logic(在 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>,
    TextUndoRedoEventArgs>
JScript 不支持事件。

备注

发送方对象是赋予它的 ITextUndoHistory ,因此,事件参数为空。 发生此事件时,只要正确启动 UndoRedo ,因此,即使某个特定事务或基元不能执行操作。

.NET Framework 安全性

请参阅

参考

ITextUndoHistory 接口

Microsoft.VisualStudio.Text.Operations 命名空间