Share via


Connects.Item Property

Visio Automation Reference

Returns an object from a collection. The Item property is the default property for all collections, and for the Path and Selection objects. Read-only.

Version Information
 Version Added:  Visio 2.0

Syntax

expression.Item(Index)

expression   A variable that represents a Connects collection.

Parameters

Name Required/Optional Data Type Description
Index Required Long Contains the index of the object to retrieve.

Return Value
Connect

Remarks

When retrieving objects from a collection, you can omit Item from the expression because it is the default property for all collections. The following statement is equivalent to the syntax example given above:

Visual Basic for Applications
  objRet = object(index) 

See Also