ITextUndoHistory Interface

 

Contains undo transactions.

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

public interface ITextUndoHistory : IPropertyOwner

NameDescription
System_CAPS_pubpropertyCanRedo

Determines whether a single redo is possible.

System_CAPS_pubpropertyCanUndo

Determines whether a single undo is possible.

System_CAPS_pubpropertyCurrentTransaction

Gets the current undo transaction in progress.

System_CAPS_pubpropertyLastRedoTransaction

Gets the most recent (top) item of the RedoStack.

System_CAPS_pubpropertyLastUndoTransaction

Gets the most recent (top) item of the UndoStack.

System_CAPS_pubpropertyProperties

(Inherited from IPropertyOwner.)

System_CAPS_pubpropertyRedoDescription

Gets the description of the most recent visible redo ITextUndoTransaction.

System_CAPS_pubpropertyRedoStack

The redo stack for this history. It does not include any currently open or undo transactions.

System_CAPS_pubpropertyState

Gets the current state of the undo history.

System_CAPS_pubpropertyUndoDescription

Gets the description of the most recent visible undo ITextUndoTransaction.

System_CAPS_pubpropertyUndoStack

The undo stack for this history. It does not include any currently open or redo transactions.

NameDescription
System_CAPS_pubmethodCreateTransaction(String)

Creates a new transaction, nests it in the previously current transaction, and marks it current.

System_CAPS_pubmethodRedo(Int32)

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

System_CAPS_pubmethodUndo(Int32)

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

NameDescription
System_CAPS_pubeventUndoRedoHappened

Notifies consumers when an undo or a redo has happened on this history.

System_CAPS_pubeventUndoTransactionCompleted

Notifies consumers when an ITextUndoTransaction is completed and added to the UndoStack.

Typically only one undo transaction history at a time is available to the user.

Return to top
Show: