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 | |
---|---|---|
Document | Gets the Document object that is associated with an object. Read-only. | |
HostID | String representation of the GUID of the host application of the Microsoft Office Visio Drawing Control. Read/write. | |
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. | |
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. | |
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. | |
Src | The full path, including file name, of the Microsoft Office Visio file used to initialize a DrawingControl object. Read/write. | |
Window | Returns the window associated with an instance of the Microsoft Office Visio 2007 Drawing Control. Read-only. |
Events
Name | Description | |
---|---|---|
AfterRemoveHiddenInformation | Occurs when hidden information is removed from the document. | |
BeforeDataRecordsetDelete | Occurs before a DataRecordset object is deleted from the DataRecordsets collection. | |
BeforeDocumentClose | Occurs before a document is closed. | |
BeforeDocumentSave | Occurs before a document is saved. | |
BeforeDocumentSaveAs | Occurs just before a document is saved by using the Save As command. | |
BeforeMasterDelete | Occurs before a master is deleted from a document. | |
BeforePageDelete | Occurs before a page is deleted. | |
BeforeSelectionDelete | Occurs before selected objects are deleted. | |
BeforeShapeTextEdit | Occurs before a shape is opened for text editing in the user interface. | |
BeforeStyleDelete | Occurs before a style is deleted. | |
BeforeWindowClosed | Occurs before a window is closed. | |
BeforeWindowPageTurn | Occurs before a window is about to show a different page. | |
BeforeWindowSelDelete | Occurs before the shapes in the selection of a window are deleted. | |
ConvertToGroupCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelConvertToGroup event. | |
DataRecordsetAdded | Occurs when a DataRecordset object is added to a DataRecordsets collection. | |
DesignModeEntered | Occurs before a document enters design mode. | |
DocumentChanged | Occurs after certain properties of a document are changed. | |
DocumentCloseCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelDocumentClose event. | |
DocumentCreated | Occurs after a document is created. | |
DocumentOpened | Occurs after a document is opened. | |
DocumentSaved | Occurs after a document is saved. | |
DocumentSavedAs | Occurs after a document is saved by using the Save As command. | |
GroupCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelGroup event. | |
KeyDown | Occurs when a keyboard key is pressed. | |
KeyPress | Occurs when a keyboard key is pressed. | |
KeyUp | Occurs when a keyboard key is released. | |
MasterAdded | Occurs after a new master is added to a document. | |
MasterChanged | Occurs after properties of a master are changed and propagated to its instances. | |
MasterDeleteCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelMasterDelete event. | |
MouseDown | Occurs when a mouse button is clicked. | |
MouseMove | Occurs when the mouse is moved. | |
MouseUp | Occurs when a mouse button is released. | |
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. | |
PageAdded | Occurs after a new page is added to a document. | |
PageChanged | Occurs after the name of a page, the background page associated with a page, or the page type (foreground or background) changes. | |
PageDeleteCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelPageDelete event. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
RunModeEntered | Occurs after a document enters run mode. | |
SelectionChanged | Occurs after a set of shapes selected in a window changes. | |
SelectionDeleteCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event. | |
ShapeAdded | Occurs after one or more shapes are added to a document. | |
ShapeDataGraphicChanged | Occurs after a data graphic is applied to or deleted from a shape. | |
ShapeExitedTextEdit | Occurs after a shape is no longer open for interactive text editing. | |
ShapeParentChanged | Occurs after shapes are grouped or a group is ungrouped. | |
StyleAdded | Occurs after a new style is added to a document. | |
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. | |
StyleDeleteCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelStyleDelete event. | |
UngroupCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelUngroup event. | |
ViewChanged | Occurs when the zoom level or scroll position of a drawing window changes. | |
WindowActivated | Occurs after the active window changes in a Microsoft Office Visio instance. | |
WindowChanged | Occurs when the size or position of a window changes. | |
WindowCloseCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelWindowClose event. | |
WindowTurnedToPage | Occurs after a window shows a different page. |