Class MenuItemRoles
Provides a set of standard menu item roles.
public static class MenuItemRoles
- Inheritance
-
MenuItemRoles
Remarks
Menu items roles provide a mechanism for automatically adjusting certain menu items to macOS conventions. For example, "About", "Exit", and "Preferences" items should be placed in the application menu on macOS, and have a standard shortcuts.
Fields
- About
"About" menu item role.
- Auto
The menu item role will be automatically deduced from the item text.
- Exit
"Exit" menu item role.
- None
No role is defined for the menu item. On macOS, the item will appear exactly as defined in the menu.
- Preferences
"Exit" menu item role.