System.Windows.Forms.MenuItem.BarBreak Property

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).

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

You can use the MenuItem.BarBreak property to create a menu where each menu item is placed next to each other horizontally instead of in a vertical list. You can also use this property to create a menu bar that contains multiple rows of top-level menu items.

This property differs from the MenuItem.Break property in that a bar is displayed on the left edge of each menu item that has the MenuItem.Break property set to true. The bar is only displayed when the menu item is not a top-level menu item.

Requirements

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