SetID Property [Visio 2003 SDK Documentation]

Returns the set ID of an AccelTable, MenuSet, or Toolbar object in its collection.

intRet = object**.SetID**

intRet     Long. The set ID of the object.

object     Required. An expression that returns an AccelTable, MenuSet, or ToolbarSet object.

Version added

4.0

Remarks

Each AccelTable, MenuSet, and ToolbarSet object has a set ID that corresponds to a Microsoft Office Visio 2003 window context. For MenuSet objects, set IDs also correspond to shortcut menu sets. And for ToolbarSet objects, they also correspond to drop-down menus under toolbar buttons (such as Fill Color or Line Weight).

You can retrieve an object from its collection by passing the object's set ID to the ItemAtID property. You can also set the set ID of an object by using the AddAtID method.

Valid set ID values are declared by the Visio type library in VisUIObjSets.

Applies to | AccelTable object | MenuSet object | ToolbarSet object

See Also | AccelTables collection | AddAtID method | ItemAtID property | MenuSets collection | ToolbarSets collection