Adds a new menu item to the menu.
Applies to: Menu object
[[Set] menuItemRet =] object.AddMenuItem ( menuItemType ) |
The AddMenuItem method syntax has these parts:
Part | Description |
object | Required. An expression, that returns an instance of the Menu object. |
menuItemType | Required. An expression that returns an Integer value. Specifies the type of the menu item (the Type property). |
menuItemRet | Optional. A MenuItem type variable. |
The menuItemType parameter specifies which type (the Type property) will the added menu item have.
See Also |
Type property, MenuItem object |