System.Windows.Forms.MenuItem.DefaultItem Property

Gets or sets a value indicating whether the menu item is the default menu item.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool DefaultItem { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The default menu item for a menu is boldfaced. When the user double-clicks a submenu that contains a default item, the default item is selected, and the submenu is closed. You can use the MenuItem.DefaultItem property to indicate, the default action that is expected in a menu or shortcut menu.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0