次の方法で共有


UndoTransactionState Enumeration

Holds the state of the transaction.

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

Syntax

'宣言
Public Enumeration UndoTransactionState
public enum UndoTransactionState
public enum class UndoTransactionState
type UndoTransactionState
public enum UndoTransactionState

Members

Member name Description
Open The initial state of the transaction, after it has been created and before it is canceled or completed.
Completed The transaction is no longer being defined, and is eligible for undo.
Canceled The transaction is no longer being defined, but has been aborted and cleared.
Redoing A transient state set by the Do operation, between the undone state and the completed state.
Undoing A transient state set by the Undo operation, between the completed state and the undone state.
Undone The Undo operation was called after completion.
Invalid The transaction has been removed from the undo history stack, for example because it was on the redo stack when a new operation cleared the redo stack. After a transaction is invalid, it should not be used for anything.

Remarks

There are five transaction state:

  • Open transactions are being defined.

  • Canceled transactions have been aborted and are empty.

  • Completed and undone transactions have been defined and are ready for undo and redo, respectively.

  • Undoing and redoing are transient states as the transaction passes between completed and undone.

  • Invalid is a state for transactions that have expired.

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace