System.Windows.Forms.MenuItem: Property Members

The properties of System.Windows.Forms.MenuItem are listed below. For a list of all members, see the MenuItem Members list.

See Also: Inherited members from System.Windows.Forms.Menu

Public Properties

BarBreakbool.

Gets or sets a value indicating whether the System.Windows.Forms.MenuItem is placed on a new line (for a menu item added to a System.Windows.Forms.MainMenu object) or in a new column (for a submenu item or menu item displayed in a System.Windows.Forms.ContextMenu).

Breakbool.

Gets or sets a value indicating whether the item is placed on a new line (for a menu item added to a System.Windows.Forms.MainMenu object) or in a new column (for a menu item or submenu item displayed in a System.Windows.Forms.ContextMenu).

Checkedbool.

Gets or sets a value indicating whether a check mark appears next to the text of the menu item.

DefaultItembool.

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

Enabledbool.

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

Indexint.

Gets or sets a value indicating the position of the menu item in its parent menu.

[read-only]
override
IsParentbool.

Gets a value indicating whether the menu item contains child menu items.

MdiListbool.

Gets or sets a value indicating whether the menu item will be populated with a list of the Multiple Document Interface (MDI) child windows that are displayed within the associated form.

MergeOrderint.

Gets or sets a value indicating the relative position of the menu item when it is merged with another.

MergeTypeMenuMerge.

Gets or sets a value indicating the behavior of this menu item when its menu is merged with another.

[read-only]
Mnemonicchar.

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

OwnerDrawbool.

Gets or sets a value indicating whether the code that you provide draws the menu item or Windows draws the menu item.

[read-only]
ParentMenu.

Gets a value indicating the menu that contains this menu item.

RadioCheckbool.

Gets or sets a value indicating whether the System.Windows.Forms.MenuItem, if checked, displays a radio-button instead of a check mark.

ShortcutShortcut.

Gets or sets a value indicating the shortcut key associated with the menu item.

ShowShortcutbool.

Gets or sets a value indicating whether the shortcut key that is associated with the menu item is displayed next to the menu item caption.

Textstring.

Gets or sets a value indicating the caption of the menu item.

Visiblebool.

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

Protected Properties

[read-only]
MenuIDint.

Gets a value indicating the Windows identifier for this menu item.