Export (0) Print
Expand All

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

The ITextUndoHistory type exposes the following members.

  NameDescription
Public propertyCanRedoDetermines whether a single redo is possible.
Public propertyCanUndoDetermines whether a single undo is possible.
Public propertyCurrentTransactionGets the current undo transaction in progress.
Public propertyLastRedoTransactionGets the most recent (top) item of the RedoStack.
Public propertyLastUndoTransactionGets the most recent (top) item of the UndoStack.
Public propertyPropertiesGets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public propertyRedoDescriptionGets the description of the most recent visible redo ITextUndoTransaction.
Public propertyRedoStackThe redo stack for this history. It does not include any currently open or undo transactions.
Public propertyStateGets the current state of the undo history.
Public propertyUndoDescriptionGets the description of the most recent visible undo ITextUndoTransaction.
Public propertyUndoStackThe undo stack for this history. It does not include any currently open or redo transactions.
Top

  NameDescription
Public methodCreateTransactionCreates a new transaction, nests it in the previously current transaction, and marks it current.
Public methodRedoPerforms the specified number of redo operation and places the transactions on the undo stack.
Public methodUndoPerforms the specified number of undo operations and places the transactions on the redo stack.
Top

  NameDescription
Public eventUndoRedoHappenedNotifies consumers when an undo or a redo has happened on this history.
Public eventUndoTransactionCompletedNotifies consumers when an ITextUndoTransaction is completed and added to the UndoStack.
Top

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

Show:
© 2014 Microsoft