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, IWisejDesignHitTest

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)

Value: true if the menu bar should automatically handle overflow items; otherwise, false. The default is 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)

Value: true if the toolbar adjusts its size automatically, based on the size of the buttons and dock style; otherwise, false. The default is true.

Instance member BorderStyle​

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

Value: One of the BorderStyle values. The default is BorderStyle.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.

Value: A ToolBarButtonCollection that contains a collection of ToolBarButton controls.

Instance member CausesValidation​

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

Value: true if clicking ToolBar buttons causes validation to be performed on the active control; otherwise, false. The default is false.

Protected member DefaultSize​

Size:

Value: The default Size of the control.

Instance member Display 4.1.7+​

Display: Returns or sets the Display mode of the toolbar buttons to determine whether to display the icon, the text or both. (Default: Both)

Value: One of the Display values. The default is Both.

Instance member Dock​

DockStyle: (Default: Top)

Value: One of the DockStyle values. The default is None.

Instance member ImageList​

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

Value: An ImageList that contains images available to the ToolBarButton controls. The default is null.

Instance member ShowToolTips​

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

Value: true if the toolbar display a ToolTip for each button; otherwise, false. The default is true.

Instance member Spacing 4.1.7+​

Nullable<Int32>: Returns or sets the space in pixels between the buttons in the toolbar, overriding the value set in the theme. (Default: null)

Value: The space in pixels between the buttons, or null to use the value set in the theme. The default is null.

Throws:

Instance member TabStop​

Boolean: Returns or sets whether the user can give the focus to this control using the TAB key and the Focusable property is set to true. (Default: False)

Value: True if the control can receive the focus using the TAB key.

Instance member TextAlign​

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

Value: One of the ToolBarTextAlign values. The default is ToolBarTextAlign.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.