ITextUndoTransaction Interface
Represents a container for ITextUndoPrimitive objects.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
| Name | Description | |
|---|---|---|
![]() | CanRedo | Determines whether it is currently possible to call Do successfully. |
![]() | CanUndo | Determines whether it is currently possible to call Undo() successfully. |
![]() | Description | Gets or sets the description. |
![]() | History | Gets the ITextUndoHistory that contains this transaction. |
![]() | MergePolicy | Gets the IMergeTextUndoTransactionPolicy associated with this transaction. |
![]() | Parent | Gets the ITextUndoTransaction that contains this transaction. |
![]() | State | Gets the UndoTransactionState for the ITextUndoTransaction. |
![]() | UndoPrimitives | Gets the collection of ITextUndoPrimitive objects in this container. |
| Name | Description | |
|---|---|---|
![]() | AddUndo(ITextUndoPrimitive) | Adds a new undo primitive to the end of the list when the transaction is open. |
![]() | Cancel() | Marks an open transaction as canceled, but the modification is left in the file. Since the state of the buffer doesn't match the undo/redo stacks, any further attempt to undo/redo will either throw exceptions or corrupt the buffer. |
![]() | Complete() | Marks the transaction as finished and eligible for undo. |
![]() | Dispose() | (Inherited from IDisposable.) |
![]() | Do() | Performs a do or redo. |
![]() | Undo() | Performs an undo or rollback. |
These objects are tracked in an T:Microsoft.VisualStudio.Text.Operations.UndoHistory.

