Table of Contents

Method GetMnemonicCharIndex

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

GetMnemonicCharIndex(string, char)

Gets the index of the mnemonic character in the specified string.

public static int GetMnemonicCharIndex(string input, char mnemonicMark = '&')

Parameters

input string

The string to search for the mnemonic character.

mnemonicMark char

The mnemonic character used to identify the intended character.

Returns

int

The index of the mnemonic character, or -1 if not found.