Table of Contents

Method GetWithoutMnemonicMarkers

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

GetWithoutMnemonicMarkers(string, out int, char)

Removes mnemonic markers from a string and returns the index of the mnemonic character, if present.

public static string GetWithoutMnemonicMarkers(string s, out int mnemonicCharIndex, char mnemonicMarker)

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.

mnemonicMarker char

The character used to mark mnemonics.

Returns

string

The input string with mnemonic markers removed. Double markers are converted to a single literal character.