DrawingControl object (Visio)

A programmable ActiveX control that enables you to build Microsoft Visio functionality into programs that you create in Microsoft Visual Studio and other development platforms.

Note

Starting with Visio 2010, the Microsoft Office Fluent user interface (UI) replaced the previous system of layered menus, toolbars, and task panes. VBA objects and members that you used to customize the user interface in previous versions of Visio are still available in Visio, but they function differently.

Remarks

Use the Document property to get the Document object associated with the instance of the Microsoft Visio Drawing Control and thereby gain access to the Visio object model.

Use the HostID property to assign a GUID or other string representation of the container application to a registry key.

Use the NegotiateMenus and Negotiate Toolbars properties to determine whether Visio menus and toolbars are merged with those of the host container application in the Visio Drawing Control, and to enable programmatic customizing of Visio menus and toolbars.

Use the PageSizingBehavior property to specify how the behavior of the control changes as the control is resized, with respect to the drawing page and any shapes on it.

Use the Src property to specify the Visio drawing to appear in the Visio Drawing Control.

Use the Window property to get the Window object associated with the instance of the Visio Drawing Control and thereby gain access to the Visio object model.

The DrawingControl object has no default property.

Events

Properties

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.