UndoEngine.UndoUnit 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
封裝一個使用者可以撤銷的工作單元。
protected: ref class UndoEngine::UndoUnit
protected class UndoEngine.UndoUnit
Protected Class UndoEngine.UndoUnit
- 繼承
-
UndoEngine.UndoUnit
備註
這個 UndoEngine.UndoUnit 類別是一個巢狀的類別, UndoEngine 封裝了一個使用者可以還原的動作。 預設 UndoEngine.UndoUnit 實作會監控變更通知,並為每個變更建立事件清單。 它會用 保存這些事件。IDesignerSerializationService An UndoEngine.UndoUnit 會透過多種public virtual方式直接UndoEngine收到變更事件通知。 你可以從 UndoEngine.UndoUnit 任何額外的邏輯推導並執行。 如果願意,你可以完全繞過預設 UndoEngine.UndoUnit 實作。
建構函式
| 名稱 | Description |
|---|---|
| UndoEngine.UndoUnit(UndoEngine, String) |
初始化 UndoEngine.UndoUnit 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| IsEmpty |
會得到一個值,表示是否 UndoEngine.UndoUnit 包含任何事件。 |
| Name | |
| UndoEngine |
取得家長 UndoEngine。 |
方法
| 名稱 | Description |
|---|---|
| Close() |
接到還原引擎的呼叫,要求關閉這個單元。 |
| ComponentAdded(ComponentEventArgs) |
接到一通來自事件UndoEngineComponentAdded的來電。 |
| ComponentAdding(ComponentEventArgs) |
接到一通來自事件UndoEngineComponentAdding的來電。 |
| ComponentChanged(ComponentChangedEventArgs) |
接到一通來自事件UndoEngineComponentChanged的來電。 |
| ComponentChanging(ComponentChangingEventArgs) |
接到一通來自事件UndoEngineComponentChanging的來電。 |
| ComponentRemoved(ComponentEventArgs) |
接到一通來自事件UndoEngineComponentRemoved的來電。 |
| ComponentRemoving(ComponentEventArgs) |
接到一通來自事件UndoEngineComponentRemoving的來電。 |
| ComponentRename(ComponentRenameEventArgs) |
接到一通來自事件UndoEngineComponentRename的來電。 |
| Equals(Object) |
判斷指定的 物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
| GetService(Type) |
會得到所請求服務的實例。 |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
回傳代表單位當前名稱的 a String 。 |
| Undo() |
執行撤銷或重做動作。 |
| UndoCore() |
被召喚 Undo() 去執行復原動作。 |