Understanding the Visio object model

An object model defines how the various objects and collections relate to each other, and their properties, methods, and events. Knowing how to navigate around it is essential for writing quick code in VBA, or more capable code for an add-in or add-on.

Starting with the Application object

The top-level object is the Visio Application object itself. This object contains a collection of documents that are currently open.

Note

Actually, there is also the InvisibleApp object, which a developer can use to interact with a diagram without the Visio application interface appearing on the screen.

Templates, drawings, and stencils are all types of Visio documents, although the user only sees stencils on the panels of shapes ...

Get Mastering Data Visualization with Microsoft Visio Professional 2016 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.