Table of contents
Collapse the table of content
Expand the table of content

Menu.Index Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Gets the ordinal position of a Menu object in a Menus collection. Read-only.


expression . Index

expression A variable that represents a Menu object.

Return Value



Note Starting with Visio, the Microsoft Office Fluent user interface (UI) replaces the previous system of layered menus, toolbars, and task panes. VBA objects and members that you used to customize the user interface in previous versions of Visio are still available in Visio, but they function differently.

Most collections are indexed starting with 1 rather than zero (0), so the index of the first element is 1, the index of the second element is 2, and so forth. The index of the last element in a collection is the same as the value of that collection's Count property. You can iterate through a collection by using these index values. Adding objects to or deleting objects from a collection can change the index values of other objects in the collection.

There are some exceptions. The Colors collection is indexed starting with 0.

These collections are also indexed starting with 0: AccelItems , AccelTables , MenuSets , MenuItems , Menus , ToolbarItems , Toolbars , and ToolbarSets .

© 2018 Microsoft