Share via


DrawingControl Object

Visio Automation Reference

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

Version Information
 Version Added:  Visio 2003

Remarks

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

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

Use the NegotiateMenus and Negotiate Toolbars properties of the DrawingControl object 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 of the DrawingControl object 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 of the DrawingControl object to specify the Visio drawing to appear in the Visio Drawing Control.

Use the Window property of the DrawingControl object to get the Visio 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.

See Also