แก้ไข

แชร์ผ่าน


UndoEngine Class

Definition

Provides undo and redo operation implementations for designers.

public ref class UndoEngine
public class UndoEngine
type UndoEngine = class
Public Class UndoEngine
Inheritance
UndoEngine

Constructors

UndoEngine(EditingContext)

Initializes a new instance of the UndoEngine class.

Properties

IsUndoRedoInProgress

Gets a Boolean value that indicates whether an undo or redo operation is in progress.

Methods

AddUndoUnit(UndoUnit)

Adds the specified unit to the undo stack.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetRedoActions()

Retrieves an IEnumerable<T> collection of redo operations.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUndoActions()

Retrieves an IEnumerable<T> collection of undo operations.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Redo()

Removes the last UndoUnit instance from the redo stack, and performs a redo operation on the unit. The UndoUnit instance is then put into the undo stack.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
Undo()

Removes the last UndoUnit instance from the undo stack, and performs an undo operation on the unit. The UndoUnit instance is then put into the redo stack.

Events

RedoCompleted

Occurs when the redo operation is completed.

UndoCompleted

Occurs when the undo operation is completed.

UndoRedoBufferChanged

Occurs when the buffers that hold undo and redo operations change.

UndoUnitAdded

Occurs when an undo unit is added to the undo stack.

UndoUnitCancelled

Occurs when an undo unit is cancelled from the undo stack.

UndoUnitDiscarded

Occurs when an undo unit is removed from the undo stack, without first performing an undo operation.

Applies to