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 I have highlighted the collections in the diagrams of these objects.

Note

I have also formatted the output in the following code examples as a table for legibility, because the text will mostly wrap within the Immediate Window.

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.

The Application object

The following sub-function in VBA prints out the salient information to the ...

Get Microsoft Visio 2010 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.