Share via


DrawingControl Object Members

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.

Properties

  Name Description
Aa342244.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342244.properties(en-us,office.12).gif HostID String representation of the GUID of the host application of the Microsoft Office Visio Drawing Control. Read/write.
Aa342244.properties(en-us,office.12).gif NegotiateMenus Determines whether Microsoft Office Visio 2007 menus are merged with those of the host application when the Microsoft Office Visio Drawing Control 2007 has the keyboard focus. Read/write.
Aa342244.properties(en-us,office.12).gif NegotiateToolbars Determines whether Microsoft Office Visio toolbars are merged with those of the host application when the Microsoft Office Visio Drawing Control is UI-active (has the keyboard focus). Read/write.
Aa342244.properties(en-us,office.12).gif PageSizingBehavior Specifies how drawing pages and shapes in the Microsoft Office Visio Drawing Control react when the control is resized, usually when an existing drawing file is loaded into the control by means of the Src property. Read/write.
Aa342244.properties(en-us,office.12).gif Src The full path, including file name, of the Microsoft Office Visio file used to initialize a DrawingControl object. Read/write.
Aa342244.properties(en-us,office.12).gif Window Returns the window associated with an instance of the Microsoft Office Visio 2007 Drawing Control. Read-only.

Events

  Name Description
Aa342244.events(en-us,office.12).gif AfterRemoveHiddenInformation Occurs when hidden information is removed from the document.
Aa342244.events(en-us,office.12).gif BeforeDataRecordsetDelete Occurs before a DataRecordset object is deleted from the DataRecordsets collection.
Aa342244.events(en-us,office.12).gif BeforeDocumentClose Occurs before a document is closed.
Aa342244.events(en-us,office.12).gif BeforeDocumentSave Occurs before a document is saved.
Aa342244.events(en-us,office.12).gif BeforeDocumentSaveAs Occurs just before a document is saved by using the Save As command.
Aa342244.events(en-us,office.12).gif BeforeMasterDelete Occurs before a master is deleted from a document.
Aa342244.events(en-us,office.12).gif BeforePageDelete Occurs before a page is deleted.
Aa342244.events(en-us,office.12).gif BeforeSelectionDelete Occurs before selected objects are deleted.
Aa342244.events(en-us,office.12).gif BeforeShapeTextEdit Occurs before a shape is opened for text editing in the user interface.
Aa342244.events(en-us,office.12).gif BeforeStyleDelete Occurs before a style is deleted.
Aa342244.events(en-us,office.12).gif BeforeWindowClosed Occurs before a window is closed.
Aa342244.events(en-us,office.12).gif BeforeWindowPageTurn Occurs before a window is about to show a different page.
Aa342244.events(en-us,office.12).gif BeforeWindowSelDelete Occurs before the shapes in the selection of a window are deleted.
Aa342244.events(en-us,office.12).gif ConvertToGroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelConvertToGroup event.
Aa342244.events(en-us,office.12).gif DataRecordsetAdded Occurs when a DataRecordset object is added to a DataRecordsets collection.
Aa342244.events(en-us,office.12).gif DesignModeEntered Occurs before a document enters design mode.
Aa342244.events(en-us,office.12).gif DocumentChanged Occurs after certain properties of a document are changed.
Aa342244.events(en-us,office.12).gif DocumentCloseCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelDocumentClose event.
Aa342244.events(en-us,office.12).gif DocumentCreated Occurs after a document is created.
Aa342244.events(en-us,office.12).gif DocumentOpened Occurs after a document is opened.
Aa342244.events(en-us,office.12).gif DocumentSaved Occurs after a document is saved.
Aa342244.events(en-us,office.12).gif DocumentSavedAs Occurs after a document is saved by using the Save As command.
Aa342244.events(en-us,office.12).gif GroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelGroup event.
Aa342244.events(en-us,office.12).gif KeyDown Occurs when a keyboard key is pressed.
Aa342244.events(en-us,office.12).gif KeyPress Occurs when a keyboard key is pressed.
Aa342244.events(en-us,office.12).gif KeyUp Occurs when a keyboard key is released.
Aa342244.events(en-us,office.12).gif MasterAdded Occurs after a new master is added to a document.
Aa342244.events(en-us,office.12).gif MasterChanged Occurs after properties of a master are changed and propagated to its instances.
Aa342244.events(en-us,office.12).gif MasterDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelMasterDelete event.
Aa342244.events(en-us,office.12).gif MouseDown Occurs when a mouse button is clicked.
Aa342244.events(en-us,office.12).gif MouseMove Occurs when the mouse is moved.
Aa342244.events(en-us,office.12).gif MouseUp Occurs when a mouse button is released.
Aa342244.events(en-us,office.12).gif OnKeystrokeMessageForAddon Occurs when Microsoft Office Visio receives a keystroke message from Microsoft Windows that is targeted at an add-on window or child of an add-on window.
Aa342244.events(en-us,office.12).gif PageAdded Occurs after a new page is added to a document.
Aa342244.events(en-us,office.12).gif PageChanged Occurs after the name of a page, the background page associated with a page, or the page type (foreground or background) changes.
Aa342244.events(en-us,office.12).gif PageDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelPageDelete event.
Aa342244.events(en-us,office.12).gif QueryCancelConvertToGroup Occurs before the application converts a selection of shapes to a group in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelDocumentClose Occurs before the application closes a document in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelGroup Occurs before the application groups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelMasterDelete Occurs before the application deletes a master in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelPageDelete Occurs before the application deletes a page in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelSelectionDelete Occurs before the application deletes a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelStyleDelete Occurs before the application deletes a style in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelUngroup Occurs before the application ungroups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif QueryCancelWindowClose Occurs before the application closes a window in response to a user action in the interface. If any event handler returns True, the operation is canceled.
Aa342244.events(en-us,office.12).gif RunModeEntered Occurs after a document enters run mode.
Aa342244.events(en-us,office.12).gif SelectionChanged Occurs after a set of shapes selected in a window changes.
Aa342244.events(en-us,office.12).gif SelectionDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event.
Aa342244.events(en-us,office.12).gif ShapeAdded Occurs after one or more shapes are added to a document.
Aa342244.events(en-us,office.12).gif ShapeDataGraphicChanged Occurs after a data graphic is applied to or deleted from a shape.
Aa342244.events(en-us,office.12).gif ShapeExitedTextEdit Occurs after a shape is no longer open for interactive text editing.
Aa342244.events(en-us,office.12).gif ShapeParentChanged Occurs after shapes are grouped or a group is ungrouped.
Aa342244.events(en-us,office.12).gif StyleAdded Occurs after a new style is added to a document.
Aa342244.events(en-us,office.12).gif StyleChanged Occurs after the name of a style is changed or a change to the style propagates to objects to which the style is applied.
Aa342244.events(en-us,office.12).gif StyleDeleteCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelStyleDelete event.
Aa342244.events(en-us,office.12).gif UngroupCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelUngroup event.
Aa342244.events(en-us,office.12).gif ViewChanged Occurs when the zoom level or scroll position of a drawing window changes.
Aa342244.events(en-us,office.12).gif WindowActivated Occurs after the active window changes in a Microsoft Office Visio instance.
Aa342244.events(en-us,office.12).gif WindowChanged Occurs when the size or position of a window changes.
Aa342244.events(en-us,office.12).gif WindowCloseCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelWindowClose event.
Aa342244.events(en-us,office.12).gif WindowTurnedToPage Occurs after a window shows a different page.