MnemonicHelper Class
A helper class for working with mnemonic keys used for control labels.
public class MnemonicHelper
- Inheritance:
- Object Object
Constructors
MnemonicHelper()
public MnemonicHelper()
Methods
GetMnemonic(String)
Gets the mnemonic for the text.
public static char GetMnemonic(string text)
Parameter | Type | Description |
---|---|---|
text | String | The text. |
Returns
RemoveMnemonics(String)
Removes mnemonic prefix characters from text.
public static string RemoveMnemonics(string text)
Parameter | Type | Description |
---|---|---|
text | String | The text. |
Returns
- String:
The original text with all mnemonic prefix characters removed and escaped prefix characters replaced with literal equivalent.
Fields
MnemonicPrefix
The prefix character which indicates the next character is a mnemonic.
public const char MnemonicPrefix = '&'
NullChar
A null character.
public const char NullChar = '\0'