DrawingControl Object [Visio 2003 SDK Documentation]

DrawingControl

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

Version added

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.

Properties | Document property | HostID property | NegotiateMenus property | NegotiateToolbars property | PageSizingBehavior property | Src property | Window property

Parent Objects

Child Objects

See Also | About the Visio Drawing Control | About using the Visio Drawing Control in your application | Application object | Document object | KeyboardEvent object | MouseEvent object | Window object