ItemAtID property

Microsoft Visio Developer Reference

ItemAtID property

       

Returns the AccelTable, MenuSet, or ToolbarSet object for an ID within a collection.

Version added

4.0

Syntax

objRet = object.ItemAtID(id)

objRet

The object retrieved from the collection.

object

Required. An expression that returns an AccelTables, MenuSets, or ToolbarSets collection.

id

Required Long. The Visio context ID of the object to retrieve.

Remarks

The ID corresponds to a window or context menu. Constants for IDs are prefixed with visUIObjSet and are declared by the Visio type library. For a list of valid IDs by collection, see the SetID property.