ITextUndoTransaction 介面
表示 ITextUndoPrimitive 物件的容器。
命名空間: Microsoft.VisualStudio.Text.Operations
組件: Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)
語法
'宣告
Public Interface ITextUndoTransaction _
Inherits IDisposable
public interface ITextUndoTransaction : IDisposable
public interface class ITextUndoTransaction : IDisposable
type ITextUndoTransaction =
interface
interface IDisposable
end
public interface ITextUndoTransaction extends IDisposable
ITextUndoTransaction 類型會公開下列成員。
屬性
名稱 | 描述 | |
---|---|---|
![]() |
CanRedo | 判斷是否為目前可以呼叫Do成功。 |
![]() |
CanUndo | 判斷目前是否可以成功呼叫 Undo()。 |
![]() |
Description | 取得或設定描述。 |
![]() |
History | 取得包含這個交易的 ITextUndoHistory。 |
![]() |
MergePolicy | 取得與這個交易相關聯的 IMergeTextUndoTransactionPolicy。 |
![]() |
Parent | 取得包含這個交易的 ITextUndoTransaction。 |
![]() |
State | 取得 ITextUndoTransaction 的 UndoTransactionState。 |
![]() |
UndoPrimitives | 取得這個容器中的 ITextUndoPrimitive 物件集合。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
AddUndo | 開啟交易時,則您可以將清單的結尾新的復原基本型別。 |
![]() |
Cancel | 開啟的交易都標示為已取消,並復原並清除任何已加入的復原基本型別。 |
![]() |
Complete | 將交易標記為已完成而且能夠復原。 |
![]() |
Dispose | 執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 (繼承自 IDisposable)。 |
![]() |
Do | 執行作業或重做。 |
![]() |
Undo | 執行復原。 |
回頁首
備註
這些物件會追蹤在UndoHistory。