This documentation is archived and is not being maintained.

MenuItem Properties

The properties of the MenuItem class are listed here. For a complete list of MenuItem class members, see the MenuItem Members topic.

Public Properties

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

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether a check mark appears next to the text of the menu item.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyDefaultItem Gets or sets a value indicating whether the menu item is the default menu item.
public propertyEnabled

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the menu item is enabled.
public propertyHandle (inherited from Menu) Gets a value representing the window handle for the menu.
public propertyIndex Gets or sets a value indicating the position of the menu item in its parent menu.
public propertyIsParent Overridden. Gets a value indicating whether the menu item contains child menu items.
public propertyMdiList 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.
public propertyMdiListItem (inherited from Menu) Gets a value indicating the MenuItem that is used to display a list of Multiple Document Interface (MDI) child forms.
public propertyMenuItems (inherited from Menu)

Supported by the .NET Compact Framework.

Gets a value indicating the collection of MenuItem objects associated with the menu.
public propertyMergeOrder Gets or sets a value indicating the relative position of the menu item when it is merged with another.
public propertyMergeType Gets or sets a value indicating the behavior of this menu item when its menu is merged with another.
public propertyMnemonic Gets a value indicating the mnemonic character that is associated with this menu item.
public propertyOwnerDraw Gets or sets a value indicating whether the code that you provide draws the menu item or Windows draws the menu item.
public propertyParent

Supported by the .NET Compact Framework.

Gets a value indicating the menu that contains this menu item.
public propertyRadioCheck Gets or sets a value indicating whether the MenuItem, if checked, displays a radio-button instead of a check mark.
public propertyShortcut Gets or sets a value indicating the shortcut key associated with the menu item.
public propertyShowShortcut 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.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyText

Supported by the .NET Compact Framework.

Gets or sets a value indicating the caption of the menu item.
public propertyVisible Gets or sets a value indicating whether the menu item is visible.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.
protected propertyMenuID Gets a value indicating the Windows identifier for this menu item.

See Also

MenuItem Class | System.Windows.Forms Namespace

Show: