# MenuBar

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (3.0.0.0)

* [Control](https://docs.wisej.com/api/v3.0/wisej.web/general/control)
  * [MenuBar](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menubar)

Represents a menu bar component.

{% tabs %}
{% tab title="C#" %}

```csharp
public class MenuBar : Control
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class MenuBar
    Inherits Control
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MenuBar()

Initializes a new instance of the [MenuBar](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menubar) class.

## Properties

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AutoOverflow

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Enables the overflow handling which automatically removes items that don't fit in the [MenuBar](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menubar) and adds them to a drop-down menu button.

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)BorderStyle

[BorderStyle](https://docs.wisej.com/api/v3.0/wisej.web/enumerations/wisej.web.borderstyle): Returns or sets the border style of the [MenuBar](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menubar) control.

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CausesValidation

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus.

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Dock

[DockStyle](https://docs.wisej.com/api/v3.0/wisej.web/enumerations/wisej.web.dockstyle):

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MenuItems

[MenuItemCollection](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menu.menuitemcollection): Returns the collection of [MenuItem](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menuitem) objects associated with the menu.

## Events

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MenuItemAdded

[MenuItemEventHandler](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menuitemeventhandler) Fired when a new menu item is added to the [MenuItemCollection](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menu.menuitemcollection).

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MenuItemClicked

[MenuItemEventHandler](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menuitemeventhandler) Fired when a menu item is clicked.

### ![](https://2647619304-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHOivImCoV8KSJbQyp6QI%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MenuItemRemoved

[MenuItemEventHandler](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menuitemeventhandler) Fired when a menu item is removed from the [MenuItemCollection](https://docs.wisej.com/api/v3.0/wisej.web/menus/wisej.web.menu.menuitemcollection).

## Implements

| Name                                                                                                      | Description                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [IBindableComponent](https://docs.wisej.com/api/v3.0/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                                 |
| [IWisejComponent](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                                |
| [IWisejControl](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/v3.0/wisej.web/general/control) class must implement this interface. |
| [IWisejSerializable](https://docs.wisej.com/api/v3.0/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                         |
