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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.