MenuBar

Wisej.Web.MenuBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents a menu bar component.

public class MenuBar : Control

Constructors

Initializes a new instance of the MenuBar class.

Properties

AutoOverflow

Boolean: Enables the overflow handling which automatically removes items that don't fit in the MenuBar and adds them to a drop-down menu button. (Default: True)

BorderStyle

BorderStyle: Returns or sets the border style of the MenuBar control. (Default: None)

CausesValidation

Boolean: Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus. (Default: False)

Size:

Dock

DockStyle: (Default: None)

MenuBarMenu:

MenuItemCollection: Returns the collection of MenuItem objects associated with the menu.

Methods

Disposes of the resources (other than memory) used by the MenuBar.

Parameter
Type
Description

disposing

true when this method is called by the application rather than a finalizer.

GetDefaultHeight()

Returns: Int32.

GetPreferredSizeCore(proposedSize)

Parameter
Type
Description

proposedSize

Returns: Size.

Returns a collection of referenced components or collection of components.

Parameter
Type
Description

items

Fires the BindingContextChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

Parameter
Type
Description

Fires the MenuItemAdded event.

Parameter
Type
Description

e

A MenuItemEventArgs that contains the event data.

Fired the MenuItemClicked event.

Parameter
Type
Description

e

A MenuItemEventArgs that contains the event data.

Fires the MenuItemRemoved event.

Parameter
Type
Description

e

A MenuItemEventArgs that contains the event data.

Parameter
Type
Description

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

Sets the specified bounds of the MenuBar control.

Parameter
Type
Description

x

The new Left property value of the control.

y

The new Top property value of the control.

width

The new Width property value of the control.

height

Not used.

specified

A combination of the BoundsSpecified values.

Events

MenuItemEventHandler Fired when a new menu item is added to the MenuItemCollection.

MenuItemEventHandler Fired when a menu item is clicked.

MenuItemEventHandler Fired when a menu item is removed from the MenuItemCollection.

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?