Table of Contents

Property Role

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

Role

Gets or sets this menu item's role, which is used to automate macOS-specific standard items layout.

public virtual MenuItemRole? Role { get; set; }

Property Value

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.

Setting Role to null has the same effect as the Auto value. The null is the default value of this property.