Method Documentation

stringformatMnemonic(stringtext, boolunderline = false)

Returns a formatted string to render mnemonics for a given menu item.

The mnemonic character is prefixed by an ampersand in the original string.

Passing true for underline will underline the mnemonic character (e.g., formatMnemonic("&File", true) will return "<u>F</u>ile"). Passing false for underline will return the plain text form (e.g., formatMnemonic("&File", false) will return "File").