UndoEngine.UndoUnit 類別

定義

封裝使用者可以復原的工作單元。

protected: ref class UndoEngine::UndoUnit
protected class UndoEngine.UndoUnit
Protected Class UndoEngine.UndoUnit
繼承
UndoEngine.UndoUnit

備註

類別 UndoEngine.UndoUnit 是內的 UndoEngine 巢狀類別,可封裝使用者可以復原的動作。 默認 UndoEngine.UndoUnit 實作會監視變更通知,並建置每個變更的事件清單。 它會使用 IDesignerSerializationService儲存這些事件。 會 UndoEngine.UndoUnit 直接從 UndoEngine 透過數 public virtual 種方法接收變更的事件通知。 您可以從衍生並 UndoEngine.UndoUnit 執行任何其他邏輯。 如有需要,您可以完全略過預設 UndoEngine.UndoUnit 實作。

建構函式

UndoEngine.UndoUnit(UndoEngine, String)

初始化 UndoEngine.UndoUnit 類別的新執行個體。

屬性

IsEmpty

取得值,指出 UndoEngine.UndoUnit 是否不包含事件。

Name

取得 UndoEngine.UndoUnit 的名稱。

UndoEngine

取得父 UndoEngine

方法

Close()

收到來自復原引擎的呼叫,關閉這個單位。

ComponentAdded(ComponentEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentAdded 事件。

ComponentAdding(ComponentEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentAdding 事件。

ComponentChanged(ComponentChangedEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentChanged 事件。

ComponentChanging(ComponentChangingEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentChanging 事件。

ComponentRemoved(ComponentEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentRemoved 事件。

ComponentRemoving(ComponentEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentRemoving 事件。

ComponentRename(ComponentRenameEventArgs)

收到來自 UndoEngine 的呼叫,以回應 ComponentRename 事件。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetService(Type)

取得要求服務的執行個體。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回 String,表示單位的目前名稱。

Undo()

執行復原或取消復原動作。

UndoCore()

Undo() 呼叫,以執行復原動作。

適用於

另請參閱