OleUndoEngine.UndoUnit Class
Extends support for encapsulating a unit of work that a user can undo.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
System.ComponentModel.Design.UndoEngine.UndoUnit
Microsoft.VisualStudio.Shell.Design.OleUndoEngine.UndoUnit
| Name | Description | |
|---|---|---|
![]() | OleUndoEngine.UndoUnit(UndoEngine, String) | Initializes a new instance of the OleUndoEngine.UndoUnit class. |
| Name | Description | |
|---|---|---|
![]() | IsEmpty | (Inherited from UndoEngine.UndoUnit.) |
![]() | Name | (Inherited from UndoEngine.UndoUnit.) |
![]() | UndoEngine | (Inherited from UndoEngine.UndoUnit.) |
| Name | Description | |
|---|---|---|
![]() | Close() | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentAdded(ComponentEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentAdding(ComponentEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentChanged(ComponentChangedEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentChanging(ComponentChangingEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentRemoved(ComponentEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentRemoving(ComponentEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | ComponentRename(ComponentRenameEventArgs) | (Inherited from UndoEngine.UndoUnit.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetService(Type) | (Inherited from UndoEngine.UndoUnit.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from UndoEngine.UndoUnit.) |
![]() | Undo() | (Inherited from UndoEngine.UndoUnit.) |
![]() | UndoCore() | (Inherited from UndoEngine.UndoUnit.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IOleParentUndoUnit.Add(IOleUndoUnit) | Adds an undo unit to the parent collection. |
![]() ![]() | IOleParentUndoUnit.Close(IOleParentUndoUnit, Int32) | Closes the specified parent undo unit. |
![]() ![]() | IOleParentUndoUnit.Do(IOleUndoManager) | Performs the undo operation. |
![]() ![]() | IOleParentUndoUnit.FindUnit(IOleUndoUnit) | Searches for the specified unit in the child undo unit hierarchy. |
![]() ![]() | IOleParentUndoUnit.GetDescription(String) | Gets the description of the undo unit. |
![]() ![]() | IOleParentUndoUnit.GetParentState(UInt32) | Gets the state of the top-level parent undo unit. |
![]() ![]() | IOleParentUndoUnit.GetUnitType(Guid, Int32) | Gets the type of the undo unit. |
![]() ![]() | IOleParentUndoUnit.OnNextAdd() | Notifies the last undo unit in the collection that a new unit has been added. |
![]() ![]() | IOleParentUndoUnit.Open(IOleParentUndoUnit) | Opens an undo unit. |
![]() ![]() | IOleUndoUnit.Do(IOleUndoManager) | Performs the undo operation. |
![]() ![]() | IOleUndoUnit.GetDescription(String) | Gets the description of the undo unit. |
![]() ![]() | IOleUndoUnit.GetUnitType(Guid, Int32) | Gets the type of the undo unit. |
![]() ![]() | IOleUndoUnit.OnNextAdd() | Notifies the last undo unit in the collection that a new unit has been added. |
The OleUndoEngine.UndoUnit class is a nested class within OleUndoEngine that encapsulates an action that a user can undo by monitoring change notifications and builds up a list of events for each change.
It saves these events using IDesignerSerializationService. An OleUndoEngine.UndoUnit receives event notifications for changes through several methods derived from UndoEngine.UndoUnit, IOleParentUndoUnit and
By implementing UndoEngine.UndoUnit, IOleParentUndoUnit, and IOleUndoUnit, OleUndoEngine.UndoUnit is able to better support linked undo by providing explicit connection between parent and child undo units.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





