ITextUndoHistory.UndoTransactionCompleted 事件

当执行完 ITextUndoTransaction 并将其添加到 UndoStack 中时,向使用者发出通知。

命名空间:  Microsoft.VisualStudio.Text.Operations
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Event UndoTransactionCompleted As EventHandler(Of TextUndoTransactionCompletedEventArgs)
event EventHandler<TextUndoTransactionCompletedEventArgs> UndoTransactionCompleted
event EventHandler<TextUndoTransactionCompletedEventArgs^>^ UndoTransactionCompleted {
    void add (EventHandler<TextUndoTransactionCompletedEventArgs^>^ value);
    void remove (EventHandler<TextUndoTransactionCompletedEventArgs^>^ value);
}
abstract UndoTransactionCompleted : IEvent<EventHandler<TextUndoTransactionCompletedEventArgs>,
    TextUndoTransactionCompletedEventArgs>
JScript 不支持事件。

备注

发送方对象是赋予它的 ITextUndoHistory ,因此,事件参数是 TextUndoTransactionCompletedEventArgs 类的实例。 此操作仅最顶层的 ITextUndoTransaction 对象会激发。 嵌套事务完成时不发生此事件。

.NET Framework 安全性

请参阅

参考

ITextUndoHistory 接口

Microsoft.VisualStudio.Text.Operations 命名空间