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