UndoEngine Klasa
Definicja
Udostępnia implementacje operacji Cofnij i wykonaj ponownie dla projektantów.Provides undo and redo operation implementations for designers.
public ref class UndoEngine
public class UndoEngine
type UndoEngine = class
Public Class UndoEngine
- Dziedziczenie
-
UndoEngine
Konstruktory
UndoEngine(EditingContext) |
Inicjuje nowe wystąpienie klasy UndoEngine.Initializes a new instance of the UndoEngine class. |
Właściwości
IsUndoRedoInProgress |
Pobiera Boolean wartość wskazującą, czy operacja Cofnij lub wykonaj ponownie jest w toku.Gets a Boolean value that indicates whether an undo or redo operation is in progress. |
Metody
AddUndoUnit(UndoUnit) |
Dodaje określoną jednostkę do stosu cofania.Adds the specified unit to the undo stack. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetRedoActions() |
Pobiera IEnumerable<T> kolekcję operacji wykonaj ponownie.Retrieves an IEnumerable<T> collection of redo operations. |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
GetUndoActions() |
Pobiera IEnumerable<T> kolekcję operacji cofania.Retrieves an IEnumerable<T> collection of undo operations. |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
Redo() |
Usuwa ostatnie UndoUnit wystąpienie ze stosu wykonaj ponownie i wykonuje operację wykonaj ponownie w jednostce.Removes the last UndoUnit instance from the redo stack, and performs a redo operation on the unit. UndoUnitWystąpienie jest następnie umieszczane w stosie cofania.The UndoUnit instance is then put into the undo stack. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Undo() |
Usuwa ostatnie UndoUnit wystąpienie ze stosu cofania i wykonuje operację cofania w jednostce.Removes the last UndoUnit instance from the undo stack, and performs an undo operation on the unit. UndoUnitWystąpienie jest następnie umieszczane w stosie ponownego wykonywania.The UndoUnit instance is then put into the redo stack. |
Zdarzenia
RedoCompleted |
Występuje po zakończeniu operacji wykonaj ponownie.Occurs when the redo operation is completed. |
UndoCompleted |
Występuje po zakończeniu operacji cofania.Occurs when the undo operation is completed. |
UndoRedoBufferChanged |
Występuje, gdy bufory, które przechowują zmiany operacji cofania i ponawiania.Occurs when the buffers that hold undo and redo operations change. |
UndoUnitAdded |
Występuje po dodaniu jednostki cofania do stosu cofania.Occurs when an undo unit is added to the undo stack. |
UndoUnitCancelled |
Występuje, gdy jednostka cofania zostanie anulowana w stosie cofania.Occurs when an undo unit is cancelled from the undo stack. |
UndoUnitDiscarded |
Występuje, gdy jednostka cofania zostanie usunięta ze stosu cofania, bez uprzedniego wykonania operacji cofania.Occurs when an undo unit is removed from the undo stack, without first performing an undo operation. |