Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.getMnemonic

Retrieves a boolean value indicating whether the specified character is the mnemonic character in the specified string.

Syntax

public static final boolean getMnemonic( char charCode**, String** text )

Parameters

charCode

The character to test.

text

The string to search.

Return Value

Returns true if the character specified by charCode is the mnemonic character in the string specified by text.

Remarks

The mnemonic character is the character imediately following the first instance of the ampersand (&) in a string. The mnemonic character (also known as an access key), is the letter that appears underlined in the control. The user can press ALT+ the mnemonic character to activate the control.