ToolBarButton
Wisej.Web.ToolBarButton
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.2.0.0)
Represents a button in the ToolBar.
public class ToolBarButton : ComponentConstructors
ToolBarButton()
Initializes a new instance of the ToolBarButton class.
ToolBarButton(text)
Initializes a new instance of the ToolBarButton class and displays the assigned text on the button.
Properties
AllowHtml
Boolean: Returns or sets a value indicating that the control can display HTML in the Text property.
AutoShowLoader
Boolean: Returns or sets whether the application blocks the browser with a modal mask when this button is clicked and until the server is done processing the execution request.
AutoShowLoader blocks the entire browser as soon as the button is clicked since it's implemented on the client side, while ShowLoader blocks the specific widget when returning from the request.
DropDownMenu
ContextMenu: Returns or sets the menu to be displayed in the drop-down toolbar button.
Enabled
Boolean: Returns or sets whether the button is enabled.
ForeColor
Color: Returns or sets the text color of the toolbar button.
Image
Image: Returns or sets the image that is displayed in a ToolBarButton.
ImageIndex
Int32: Returns or sets the index value of the image assigned to the ToolBarButton.
Throws:
ArgumentOutOfRangeException The specified index is less than -1.
ImageKey
String: Returns or sets the name of the image assigned to the button.
ImageSource
String: Returns or sets the theme name or URL for the image to display in the ToolBarButton.
Margin
Padding: Returns or sets the space between toolbar buttons.
Name
String: Returns or sets the name of the ToolBarButton.
Padding
Padding: Returns or sets padding within the toolbar button.
Parent
ToolBar: Returns the toolbar control that the toolbar button is assigned to.
Pushed
Boolean: Returns or sets whether a toggle-style toolbar button is currently in the pushed state.
SizeMode
ToolBarButtonSizeMode: Returns or sets how the toolbar button is resized.
Style
ToolBarButtonStyle: Returns or sets the style of the toolbar button.
Tag
Object: Returns or sets the object that contains data about the toolbar button.
Text
String: Returns or sets the text displayed on the toolbar button.
When AllowHtml is set to true, the text can contain HTML content. If the text contains new lines (CRLF) but doesn't contain HTML elements (at least one "<") all CRLF are automatically substituted with " ".
ToolTipText
String: Returns or sets the text that appears as a ToolTip for the button.
Visible
Boolean: Returns or sets whether the toolbar button is visible or hidden.
Methods
PerformClick()
Generates the Click and ButtonClick events.
Update()
Updates the component on the client. Overridden to repaint the toolbar in design mode.
Events
Click
EventHandler Fired when the control is clicked.
Implements
All wisej components implement this interface.
Allows an object to serialize itself.
Last updated
Was this helpful?

