Export (0) Print
Expand All

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)

'Declaration
Public ReadOnly Property Mnemonic As Char
'Usage
Dim instance As MenuItem
Dim value As Char

value = instance.Mnemonic

/** @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

Community Additions

ADD
Show:
© 2014 Microsoft