Export (0) Print
Expand All

MenuItem.Mnemonic Property

Gets a value indicating the mnemonic character that is associated with this menu item.

[Visual Basic]
Public ReadOnly Property Mnemonic As Char
[C#]
public char Mnemonic {get;}
[C++]
public: __property __wchar_t get_Mnemonic();
[JScript]
public function get Mnemonic() : Char;

Property Value

A character that represents the mnemonic character associated with this menu item. Returns the character '0' if no mnemonic character is specified in the text of the MenuItem.

Remarks

The mnemonic character is the first character after a ampersand chracter in the text of the MenuItem. This property will not return a mnemonic if two ampersand characters are placed together as the ampersands are used to display an ampersand in the text of the MenuItem instead of defining a mnemonic character.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

MenuItem Class | MenuItem Members | System.Windows.Forms Namespace | Text

Show:
© 2014 Microsoft