Table of Contents

Class MenuItemRole

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a menu item role.

[TypeConverter(typeof(MenuItemRoleConverter))]
public class MenuItemRole : IEquatable<MenuItemRole>
Inheritance
MenuItemRole
Implements

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 the name for the role.

RoleType

Gets the role type.

Methods

Equals(MenuItemRole?)

Determines whether the current MenuItemRole instance is equal to the specified MenuItemRole instance.

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.