The MenuBar class represents a menu bar.
Adds a menu bar specified by item to the menu.
The zero-based index of the menu with a particular caption or -1 if a menu with a caption does not exist.
Finds the location of a menu with a particular caption in the menu bar and returns the location where the menu is located. If a menu with the caption is not found, then the function returns -1.
The menu at the specified zero-based index in the menu bar. If index is less than 0, greater than the number of menus in the menu bar or is unspecified, the function returns null.
Returns the menu in the menu bar at the specified index.
The number of menus in the menu bar.
Returns the number of menus in the menu bar.
An array of menus and menu items that are in the menu.
Returns an array of menus and menu items that are in the menu.
An array of menus that are in the menu bar.
Returns an array of menus that are in the menu bar.
Inserts a menu specified by item into the menu bar at a given index. If no index is specified, the menu or menu item is inserted at the end of the menu.
Returns true if the menu is removed, and false otherwise.
Removes a menu from the menu bar that is explicitly denoted by item or else by an position given by index. The function returns true if the menu is removed, false otherwise.