MenuItem Object [Visio 2003 SDK Documentation]

Multiple objects
MenuItems
MenuItem
MenuItems

Represents a single menu item on a Microsoft Office Visio menu, such as the Copy menu item on the Edit menu.

Version added

4.0

Remarks

The default property of MenuItem is Caption.

A MenuItem object contains all the information it needs to display the menu item and launch the appropriate Visio command or add-on. It also contains text for the Undo, Redo, and Repeat menu items and error messages.

The index of a MenuItem object within the MenuItems collection corresponds to the menu item's position from top to bottom on the menu or submenu, starting with zero (0).

If the menu item displays a submenu, the MenuItem object has a MenuItems collection that represents items on the submenu. The MenuItem object's Caption property contains the submenu title and its CmdNum property is set to zero (0). Most of the other properties of the MenuItem are ignored, because this object serves much the same role as a Menu object.

Properties | ActionText property | AddOnArgs property | AddOnName property | BeginGroup property | BuiltIn property | Caption property | CmdNum property | CntrlType property | Enabled property | FaceID property | Index property | IsHierarchical property | MenuItems property | PaletteWidth property | State property | Style property | TypeSpecific1 property | TypeSpecific2 property | Visible property | Width property

Methods | Delete method | IconFileName method

Parent Objects | MenuItems Collection

Child Objects | MenuItems Object

See Also | MenuItems collection | Menus property | MenuSet object