TClrCustomControl.IsMnemonic(WCHAR,String) Method

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

Namespace: CNClrLib.Control.Base
public
 class function IsMnemonic(charCode: WCHAR; text: String): Boolean;

Parameters

charCode
Type: WCHAR

The character to test.

text
Type: String

The string to search.

Return Value

Type: Boolean

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

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