ToolBarExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the ToolBar class.
- C#
- VB.NET
public class ToolBarExtensions
Public Class ToolBarExtensions
Methods
AutoOverflow<TToolBar>(toolBar, autoOverflow)
Configures the auto overflow behavior of the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| autoOverflow | Boolean | Specifies whether the toolbar should automatically handle overflow. |
Returns: TToolBar. The modified toolbar.
BorderStyle<TToolBar>(toolBar, borderStyle)
Sets the border style of the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| borderStyle | BorderStyle | The border style to apply. |
Returns: TToolBar. The modified toolbar.
Buttons<TToolBar>(toolBar, toolBarButtons)
Adds an array of ToolBarButton to the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| toolBarButtons | ToolBarButton[] | The buttons to add to the toolbar. |
Returns: TToolBar. The modified toolbar.
ImageList<TToolBar>(toolBar, imageList)
Assigns an ImageList to the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| imageList | ImageList | The ImageList to assign. |
Returns: TToolBar. The modified toolbar.
OnButtonClick<TToolBar>(toolbar, action)
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolbar | TToolBar | |
| action | Action<TToolBar, ToolBarButtonClickEventArgs> |
Returns: TToolBar.
OnButtonDropDown<TToolBar>(toolbar, action)
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolbar | TToolBar | |
| action | Action<TToolBar, ToolBarButtonClickEventArgs> |
Returns: TToolBar.
ShowToolTips<TToolBar>(toolBar, showToolTips)
Configures whether tooltips are shown on the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| showToolTips | Boolean | Specifies whether to show tooltips. |
Returns: TToolBar. The modified toolbar.
TextAlign<TToolBar>(toolBar, toolBarTextAlign)
Sets the text alignment on the specified ToolBar.
| Parameter | Type | Description |
|---|---|---|
| TToolBar | ||
| toolBar | TToolBar | The toolbar to modify. |
| toolBarTextAlign | ToolBarTextAlign | The text alignment to set. |
Returns: TToolBar. The modified toolbar.