IVBUndoUnit object (Visio)

The interface on an undo unit in Microsoft Visio. An undo unit encapsulates the information necessary to undo or redo a single action.

Remarks

The default property of IVBUndoUnit is Description.

Use the IVBUndoUnit interface in Microsoft Visual Basic for Applications (VBA) or Microsoft Visual Basic to create your own undo units for the Visio undo manager. To create an undo unit, you must implement this interface, along with all of its public procedures, in a class module that you insert into your project.

IVBUndoUnit methods and properties in VTable order

IUnknown methods Description
QueryInterface Returns a pointer to a specified interface.
AddRef Increments the reference count.
Release Decrements the reference count.

IVBUndoUnit methods Description
Do Instructs the undo unit to carry out its action.
OnNextAdd Notifies the last undo unit in the collection that a new unit has been added.

IVBUndoUnit properties Description
Description Read-only. Describes the undo action.
UnitSize Size in bytes. Used to measure how much memory undo information is using.
UnitTypeCLSID Read-only. Returns the CLSID and a type identifier for the undo unit.
UnitTypeLong Read-only. Returns a Long that can be used to identify the undo unit.

Methods

Properties

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.