Table of contents
Collapse the table of content
Expand the table of content

IVBUndoUnit.OnNextAdd Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Notifies an undo unit that another undo unit has been added to the undo stack. Returns Nothing .


expression . OnNextAdd

expression A variable that represents an IVBUndoUnit object.

Return Value



If you are creating an undo unit for your solution, the OnNextAdd method is one of the procedures that you must implement. It gets called when the next undo unit in the same undo scope gets added to the undo stack.

When an undo unit receives an OnNextAdd notification, it communicates back to the creating object that it can no longer insert data into this undo unit.

For more information about the using the OnNextAdd method and using the IVBUndoUnit interface to create undo units, search for "creating undo units" on MSDN.

© 2018 Microsoft