Share via


Menus.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(lIndex)

expression   A variable that represents a Menus collection.

Parameters

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

Return Value
Menu

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