Understanding the Visio object model

We will now examine some of the key properties of the main objects in the Visio Type Library. Please note that the collections have been highlighted in the diagrams of these objects.

Note

The output text that is displayed within the Immediate window has been formatted as a table for legibility in the following code examples.

Examining the Application object

The Application object is the root of most collections and objects in Visio, including the Active objects, two of which are useful for traversing structured diagrams—ActiveDocument and ActivePage.

Examining the Application object

The following subfunction in VBA prints out the salient information ...

Get Microsoft Visio 2013 Business Process Diagramming and Validation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.