当执行完 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。