Table of Contents

Method GetWithoutMnemonicMarkers

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

s string

The input string containing mnemonic markers.

mnemonicCharIndex int

The 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.