public sealed record DesktopStandardMenuTitles : IEquatable<DesktopStandardMenuTitles> The titles of the standard macOS menus and their items, which Runic adds to the application's main menu (DesktopHostOptions.StandardMenuTitles). Every title defaults to the English one.
Remarks
Supply them in the user's language from the application's translations, or from the optional Runic.Application.Views.Translations package (English and German). {0} in DesktopStandardMenuTitles.About, DesktopStandardMenuTitles.Hide and DesktopStandardMenuTitles.Quit is replaced by the application's name, as in the English titles; a translation can leave it out or place it elsewhere.
A title has 1 to 256 characters, no NUL character and is not only white space; {0} may appear at most once and only in DesktopStandardMenuTitles.About, DesktopStandardMenuTitles.Hide and DesktopStandardMenuTitles.Quit, and no other brace may appear in them. Building the host throws ArgumentException otherwise, and DesktopHost.Validate reports menu-title-invalid.
Example
StandardMenuTitles = new DesktopStandardMenuTitles { Edit = "Bearbeiten", Quit = "{0} beenden", Copy = "Kopieren" },Constructors
DesktopStandardMenuTitles
public DesktopStandardMenuTitles() No documentation.
Properties
About
public string About { get; init; } Gets the application menu's About item; {0} is the application's name.
ActualSize
public string ActualSize { get; init; } Gets the View menu's Actual Size item.
BringAllToFront
public string BringAllToFront { get; init; } Gets the Window menu's Bring All to Front item.
ClearMenu
public string ClearMenu { get; init; } Gets the Open Recent submenu's Clear Menu item.
Close
public string Close { get; init; } Gets the File menu's Close item.
Copy
public string Copy { get; init; } Gets the Edit menu's Copy item.
Cut
public string Cut { get; init; } Gets the Edit menu's Cut item.
Edit
public string Edit { get; init; } Gets the Edit menu's title.
File
public string File { get; init; } Gets the File menu's title; a declared File menu's title takes its place.
Hide
public string Hide { get; init; } Gets the application menu's Hide item; {0} is the application's name.
HideOthers
public string HideOthers { get; init; } Gets the application menu's Hide Others item.
Minimize
public string Minimize { get; init; } Gets the Window menu's Minimize item.
OpenRecent
public string OpenRecent { get; init; } Gets the File menu's Open Recent submenu (MacOSDesktopOptions.OpenRecentMenu).
Paste
public string Paste { get; init; } Gets the Edit menu's Paste item.
Quit
public string Quit { get; init; } Gets the application menu's Quit item; {0} is the application's name.
Redo
public string Redo { get; init; } Gets the Edit menu's Redo item.
SelectAll
public string SelectAll { get; init; } Gets the Edit menu's Select All item.
ShowAll
public string ShowAll { get; init; } Gets the application menu's Show All item.
Undo
public string Undo { get; init; } Gets the Edit menu's Undo item.
View
public string View { get; init; } Gets the View menu's title.
Window
public string Window { get; init; } Gets the Window menu's title.
Zoom
public string Zoom { get; init; } Gets the Window menu's Zoom item.
ZoomIn
public string ZoomIn { get; init; } Gets the View menu's Zoom In item.
ZoomOut
public string ZoomOut { get; init; } Gets the View menu's Zoom Out item.