InvisibleApp.ConnectorToolDataObject Property
Visio Automation Reference |
Returns an IDataObject interface representing the active Connector tool used in the Microsoft Office Visio user interface. Read-only.
Version Information
Version Added: Visio 2003
Syntax
expression.ConnectorToolDataObject
expression A variable that represents an InvisibleApp object.
Return Value
IDataObject
Remarks
By default, ConnectorToolDataObject returns the built-in Visio Connector tool. If a master from a stencil is the active connector, ConnectorToolDataObject returns a data object for that master. If Visio fails to retrieve the internal IDataObject, it raises an exception.
Example
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the ConnectorToolDataObject property to connect two shapes. It drops two masters on the page and connects them with a Dynamic Connector shape, using dynamic glue. Before running this macro, open the Basic Shapes stencil, if it is not already open.
Visual Basic for Applications |
---|
|
See Also