Skip to main content
Version: 4.1

ToolBar

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a toolbar component.

public class ToolBar : Control, IWisejDesignTarget

Constructors

Instance member ToolBar()

Initializes a new instance of the ToolBar class.

Properties

Instance member 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)

Instance member 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)

Instance member BorderStyle

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

Instance member ButtonCount

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

Instance member Buttons

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

Instance member CausesValidation

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

Protected member DefaultSize

Size:

Instance member Dock

DockStyle: (Default: Top)

Instance member ImageList

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

Instance member ShowToolTips

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

Instance member TextAlign

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

Methods

Protected member Dispose(disposing)

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

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

Protected member OnAddReferences(items)

Returns a collection of referenced components or collection of components.

ParameterTypeDescription
itemsIList

Protected member OnBindingContextChanged(e)

Fires the BindingContextChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Instance member OnButtonClick(e)

Fires the ButtonClick event.

ParameterTypeDescription
eToolBarButtonClickEventArgsA ToolBarButtonClickEventArgs that contains the event data.

Protected member OnButtonDropDown(e)

Fires the ButtonDropDown event.

ParameterTypeDescription
eToolBarButtonClickEventArgsA ToolBarButtonClickEventArgs that contains the event data.

Protected member OnEnabledChanged(e)

Fires the EnabledChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

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

Sets the specified bounds of the ToolBar control.

ParameterTypeDescription
xInt32The new Left property value of the control.
yInt32The new Top property value of the control.
widthInt32The new Width property value of the control.
heightInt32Not used.
specifiedBoundsSpecifiedA combination of the BoundsSpecified values.

Instance member ValidateActiveControl()

Validates the current control.

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

Events

Instance member AutoSizeChanged

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

Instance member ButtonClick

ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.

Instance member ButtonDropDown

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

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.