Application.DefaultRectangleDataObject property (Visio)

Returns an IDataObject interface that represents the Rectangle tool used in the Microsoft Visio user interface. Read-only.

Syntax

expression.DefaultRectangleDataObject

expression An expression that returns an Application object.

Return value

IDataObject

Remarks

By using the DefaultRectangleDataObject property to get an IDataObject interface, you can create a new rectangle shape linked to data—a result similar to what you would get by dragging a data recordset row onto the page.

This property is useful in situations where no master is selected in a docked stencil.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.