UndoEngine::UndoUnit Class
Encapsulates a unit of work that a user can undo.
Assembly: System.Design (in System.Design.dll)
The UndoEngine::UndoUnit type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IsEmpty | Gets a value indicating whether the UndoEngine::UndoUnit contains no events. |
![]() | Name | Gets the name of the UndoEngine::UndoUnit. |
![]() | UndoEngine | Gets the parent UndoEngine. |
| Name | Description | |
|---|---|---|
![]() | Close | Receives a call from the undo engine to close this unit. |
![]() | ComponentAdded | Receives a call from the UndoEngine in response to a ComponentAdded event. |
![]() | ComponentAdding | Receives a call from the UndoEngine in response to a ComponentAdding event. |
![]() | ComponentChanged | Receives a call from the UndoEngine in response to a ComponentChanged event. |
![]() | ComponentChanging | Receives a call from the UndoEngine in response to a ComponentChanging event. |
![]() | ComponentRemoved | Receives a call from the UndoEngine in response to a ComponentRemoved event. |
![]() | ComponentRemoving | Receives a call from the UndoEngine in response to a ComponentRemoving event. |
![]() | ComponentRename | Receives a call from the UndoEngine in response to a ComponentRename event. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetService | Gets an instance of the requested service. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a String that represents the current name of the unit. (Overrides Object::ToString().) |
![]() | Undo | Performs an undo or redo action. |
![]() | UndoCore | Called by Undo to perform an undo action. |
The UndoEngine::UndoUnit class is a nested class within UndoEngine that encapsulates an action that a user can undo. The default UndoEngine::UndoUnit implementation monitors change notifications and builds up a list of events for each change. It saves these events using IDesignerSerializationService. An UndoEngine::UndoUnit receives event notifications for changes directly from UndoEngine through several public virtual methods. You can derive from UndoEngine::UndoUnit and perform any additional logic. If desired, you can completely bypass the default UndoEngine::UndoUnit implementation.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
