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

IVisEventProc Object (Visio)

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

The interface for handling event notifications in Microsoft Visio.

Remarks

In addition to the methods inherited from IDispatch , the IVisEventProc interface contains a single function, VisEventProc , which returns a Variant . Because IVisEventProc inherits from IDispatch and hence from IUnknown , you must implement the methods in those interfaces as well as the VisEventProc method in IVisEventProc .

To handle event notifications in Visio, create a class module that implements the IVisEventProc interface in Microsoft Visual Basic for Applications (VBA) or Microsoft Visual Basic, and then create an instance of this class to pass as an argument to the AddAdvise method of the EventList collection.

For more information about using the IVisEventProc interface to handle event notifications, search for "Visio event objects" on MSDN, the Microsoft Developer Network. For more information about implementing IDispatch methods, search for "Implementing the IDispatch Interface" on MSDN.

© 2017 Microsoft