System.Windows.Forms.Control.IsMnemonic Method

Determines if the specified character is the mnemonic character assigned to the control in the specified string.

Syntax

public static bool IsMnemonic (char charCode, string text)

Parameters

charCode
The character to test.
text
The string to search.

Returns

true if the charCode character is the mnemonic character assigned to the control; otherwise, false.

Remarks

The mnemonic character is the character immediately following the first instance of "&" in a string.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0