OleUndoEngine.UndoUnit Class
Extends support for encapsulating a unit of work that a user can undo.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
声明
Protected Class UndoUnit _
Inherits UndoEngine..::..UndoUnit _
Implements IOleParentUndoUnit, IOleUndoUnit
用法
Dim instance As OleUndoEngine.UndoUnit
protected class UndoUnit : UndoEngine..::..UndoUnit,
IOleParentUndoUnit, IOleUndoUnit
protected ref class UndoUnit : public UndoEngine..::..UndoUnit,
IOleParentUndoUnit, IOleUndoUnit
type UndoUnit =
class
inherit UndoEngine..::..UndoUnit
interface IOleParentUndoUnit
interface IOleUndoUnit
end
protected class UndoUnit extends UndoEngine..::..UndoUnit implements IOleParentUndoUnit, IOleUndoUnit
Remarks
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.
Inheritance Hierarchy
System.Object
System.ComponentModel.Design.UndoEngine.UndoUnit
Microsoft.VisualStudio.Shell.Design.OleUndoEngine.UndoUnit
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
OleUndoEngine.UndoUnit Members