ITextUndoHistory ITextUndoHistory ITextUndoHistory ITextUndoHistory ITextUndoHistory ITextUndoHistory Interface

Definition

Contains undo transactions.

public interface class ITextUndoHistory : Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface class ITextUndoHistory : Microsoft::VisualStudio::Utilities::IPropertyOwner
__interface ITextUndoHistory : Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface ITextUndoHistory : Microsoft.VisualStudio.Utilities.IPropertyOwner
type ITextUndoHistory = interface
    interface IPropertyOwner
Public Interface ITextUndoHistory
Implements IPropertyOwner
Implements

Remarks

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

Properties

CanRedo CanRedo CanRedo CanRedo CanRedo CanRedo

Determines whether a single redo is possible.

CanUndo CanUndo CanUndo CanUndo CanUndo CanUndo

Determines whether a single undo is possible.

CurrentTransaction CurrentTransaction CurrentTransaction CurrentTransaction CurrentTransaction CurrentTransaction

Gets the current UndoTransaction in progress.

LastRedoTransaction LastRedoTransaction LastRedoTransaction LastRedoTransaction LastRedoTransaction LastRedoTransaction

Gets the most recent (top) item of the RedoStack, or null if the stack is empty.

LastUndoTransaction LastUndoTransaction LastUndoTransaction LastUndoTransaction LastUndoTransaction LastUndoTransaction

Gets the most recent (top) item of the UndoStack, or null if the stack is empty.

RedoDescription RedoDescription RedoDescription RedoDescription RedoDescription RedoDescription

Gets the description of the most recent visible redo ITextUndoTransaction.

RedoStack RedoStack RedoStack RedoStack RedoStack RedoStack

The redo stack for this history. It does not include any currently open or undo transactions.

State State State State State State

Gets the current state of the UndoHistory.

UndoDescription UndoDescription UndoDescription UndoDescription UndoDescription UndoDescription

Gets the description of the most recent visible undo ITextUndoTransaction.

UndoStack UndoStack UndoStack UndoStack UndoStack UndoStack

The undo stack for this history. It does not include any currently open or redo transactions.

Methods

CreateTransaction(String) CreateTransaction(String) CreateTransaction(String) CreateTransaction(String) CreateTransaction(String) CreateTransaction(String)

Creates a new transaction, nests it in the previously current transaction, and marks it current.

Redo(Int32) Redo(Int32) Redo(Int32) Redo(Int32) Redo(Int32) Redo(Int32)

Performs the specified number of redo operation and places the transactions on the undo stack.

Undo(Int32) Undo(Int32) Undo(Int32) Undo(Int32) Undo(Int32) Undo(Int32)

Performs the specified number of undo operations and places the transactions on the redo stack.

Events

UndoRedoHappened UndoRedoHappened UndoRedoHappened UndoRedoHappened UndoRedoHappened UndoRedoHappened

Notifies consumers when an undo or a redo has happened on this history.

UndoTransactionCompleted UndoTransactionCompleted UndoTransactionCompleted UndoTransactionCompleted UndoTransactionCompleted UndoTransactionCompleted

Notifies consumers when an ITextUndoTransaction is completed and added to the UndoStack.

Applies to