Connects property

Microsoft Visio Developer Reference

Connects property

   Example   

Returns a Connects collection for a shape, page, or master.

Version added

2.0

Syntax

objRet = object.Connects

objRet

The Connects collection of the Shape, Page, or Master object.

object

Required. An expression that returns a Shape, Page, or Master object that owns the collection.

Remarks

The Connects collection of a shape contains every Connect object for which the shape is returned by the FromSheet property. This tells you all the shapes to which the shape is connected.

To obtain a Connects collection that contains every Connect object for which the shape is the ToSheet property, use the shape's FromConnects property. This tells you all the shapes that are connected to this shape.

The Connects collection of a page contains a Connect object for every connection on the page.

The Connects collection of a master contains a Connect object for every connection in the master.