共用方式為


ITextUndoHistory.Undo 方法

執行指定數目的復原作業,並將這些交易置於重做堆疊上。

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)

語法

'宣告
Sub Undo ( _
    count As Integer _
)
void Undo(
    int count
)
void Undo(
    int count
)
abstract Undo : 
        count:int -> unit
function Undo(
    count : int
)

參數

  • count
    類型:Int32

    要執行的復原作業數目。

備註

結束作業時,在指定的 [看得見的交易數都將復原。 因此,復原交易的實際數目可能超過此數字,當上述的隱藏交易,或看得見的下方。

最後一個可見的交易復原後,隱藏的交易便會留在堆疊會復原,直到碰到可見的或連結的交易,或完全清空堆疊的最上層。

.NET Framework 安全性

請參閱

參考

ITextUndoHistory 介面

Microsoft.VisualStudio.Text.Operations 命名空間