MnemonicHelper Class
A helper class for working with mnemonic keys used for control labels.
public class MnemonicHelper
- Inheritance:
- object object
Constructors
MnemonicHelper()
Initializes an instance of the class.
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'