ITextUndoTransaction Interface
Represents a container for ITextUndoPrimitive objects.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'宣言
Public Interface ITextUndoTransaction _
Inherits IDisposable
public interface ITextUndoTransaction : IDisposable
public interface class ITextUndoTransaction : IDisposable
type ITextUndoTransaction =
interface
interface IDisposable
end
public interface ITextUndoTransaction extends IDisposable
The ITextUndoTransaction type exposes the following members.
Properties
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. |
Top
Methods
Name | Description | |
---|---|---|
AddUndo | Adds a new undo primitive to the end of the list when the transaction is open. | |
Cancel | Marks an open transaction as canceled, and undoes and clears any undo primitives that have been added. | |
Complete | Marks the transaction as finished and eligible for undo. | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Do | Performs a do or redo. | |
Undo | Performs an undo or rollback. |
Top
Remarks
These objects are tracked in an UndoHistory.