Method GetWithoutMnemonicMarkers
GetWithoutMnemonicMarkers(string, out int)
Removes mnemonic markers from a string and returns the index of the mnemonic character, if present.
protected virtual string GetWithoutMnemonicMarkers(string s, out int mnemonicCharIndex)
Parameters
sstringThe input string containing mnemonic markers.
mnemonicCharIndexintThe output index of the mnemonic character in the returned string. Returns -1 if no mnemonic marker is found.
Returns
- string
The input string with mnemonic markers removed. Double markers are converted to a single literal character.
Remarks
If MnemonicCharIndex is not null, it is assigned to
mnemonicCharIndex.
In this case text is not processed and is used as is.