Partilhar via


ITextUndoHistory.Undo Method

Performs the specified number of undo operations and places the transactions on the redo stack.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaração
Sub Undo ( _
    count As Integer _
)
void Undo(
    int count
)
void Undo(
    int count
)
abstract Undo : 
        count:int -> unit 
function Undo(
    count : int
)

Parameters

  • count
    Type: System.Int32
    The number of undo operations to perform.

Remarks

At the end of the operation, the specified number of visible transactions are undone. Therefore, the actual number of transactions undone might be more than this number if there are hidden transactions above or below the visible ones.

After the last visible transaction is undone, the hidden transactions left on top the stack are undone as well, until a visible or linked transaction is encountered, or the stack is completely emptied.

.NET Framework Security

See Also

Reference

ITextUndoHistory Interface

Microsoft.VisualStudio.Text.Operations Namespace