共用方式為


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 命名空間