ToolBar

Wisej.Web.ToolBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents a toolbar component.

public class ToolBar : Control, IWisejDesignTarget

Constructors

ToolBar()

Initializes a new instance of the ToolBar class.

Properties

AutoOverflow

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

AutoSize

Boolean: Returns or sets whether the toolbar adjusts its size automatically, based on the size of the buttons and the dock style. (Default: True)

BorderStyle

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

ButtonCount

Int32: Returns the number of child buttons without forcing the creation of the collection.

Buttons

ToolBarButtonCollection: Returns the collection of ToolBarButton controls assigned to the toolbar control.

CausesValidation

Boolean: Returns or sets whether clicking ToolBar buttons causes validation to be performed on the active control. (Default: False)

DefaultSize

Size:

Dock

DockStyle: (Default: Top)

ImageList

ImageList: Returns or sets the collection of images available to the toolbar button controls. (Default: null)

ShowToolTips

Boolean: Returns or sets whether the toolbar displays a ToolTip for each button. (Default: True)

TextAlign

ToolBarTextAlign: Returns or sets the alignment of text in relation to each image displayed on the toolbar button controls. (Default: Underneath)

Methods

Dispose(disposing)

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

Parameter
Type
Description

disposing

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

OnAddReferences(items)

Returns a collection of referenced components or collection of components.

Parameter
Type
Description

items

OnBindingContextChanged(e)

Fires the BindingContextChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnButtonClick(e)

Fires the ButtonClick event.

Parameter
Type
Description

OnButtonDropDown(e)

Fires the ButtonDropDown event.

Parameter
Type
Description

OnEnabledChanged(e)

Fires the EnabledChanged event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

SetBoundsCore(x, y, width, height, specified)

Sets the specified bounds of the ToolBar 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.

ValidateActiveControl()

Validates the current control.

Returns: Boolean. true if the active control is validated.

Events

AutoSizeChanged

EventHandler Fired when the value of the AutoSize property has changed.

ButtonClick

ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.

ButtonDropDown

ToolBarButtonClickEventHandler Fired when a drop-down style ToolBarButton or its down arrow is clicked.

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?