Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

MenuItem.Mnemonic Property

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

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public char Mnemonic { get; }
/** @property */
public char get_Mnemonic ()

public function get Mnemonic () : char

Not applicable.

Property Value

A character that represents the mnemonic character associated with this menu item. Returns the NUL character (ASCII value 0) if no mnemonic character is specified in the text of the MenuItem.

The mnemonic character is the first character after an ampersand character (&) 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.