Class MenuItemRole
Represents a menu item role.
[TypeConverter(typeof(MenuItemRoleConverter))]
public class MenuItemRole
- Inheritance
-
MenuItemRole
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. For more information, see MenuItemRoles class members.
Constructors
- MenuItemRole(string)
Initializes and instance of MenuItemRole class.
Properties
- Name
Gets or sets the name for the role.
Methods
- Equals(object?)
Determines whether two object instances are equal.
- GetHashCode()
Serves as the default hash function.
- ToString()
Returns a string that represents the current object.