ITextUndoTransaction Interface

 

Represents a container for ITextUndoPrimitive objects.

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

public interface ITextUndoTransaction : IDisposable

NameDescription
System_CAPS_pubpropertyCanRedo

Determines whether it is currently possible to call Do successfully.

System_CAPS_pubpropertyCanUndo

Determines whether it is currently possible to call Undo() successfully.

System_CAPS_pubpropertyDescription

Gets or sets the description.

System_CAPS_pubpropertyHistory

Gets the ITextUndoHistory that contains this transaction.

System_CAPS_pubpropertyMergePolicy

Gets the IMergeTextUndoTransactionPolicy associated with this transaction.

System_CAPS_pubpropertyParent

Gets the ITextUndoTransaction that contains this transaction.

System_CAPS_pubpropertyState

Gets the UndoTransactionState for the ITextUndoTransaction.

System_CAPS_pubpropertyUndoPrimitives

Gets the collection of ITextUndoPrimitive objects in this container.

NameDescription
System_CAPS_pubmethodAddUndo(ITextUndoPrimitive)

Adds a new undo primitive to the end of the list when the transaction is open.

System_CAPS_pubmethodCancel()

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.

System_CAPS_pubmethodComplete()

Marks the transaction as finished and eligible for undo.

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodDo()

Performs a do or redo.

System_CAPS_pubmethodUndo()

Performs an undo or rollback.

These objects are tracked in an T:Microsoft.VisualStudio.Text.Operations.UndoHistory.

Return to top
Show: