Skip to main content
Version: 4.1

DesktopTaskBarItem

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a component in the Desktop control's taskbar.

public class DesktopTaskBarItem : Component

Constructors​

Instance member DesktopTaskBarItem()​

Initializes a new instance of the DesktopTaskBarItem class.

Instance member DesktopTaskBarItem(text)​

Initializes a new instance of the DesktopTaskBarItem class and displays the specified text on the item.

NameTypeDescription
textStringThe text to display on the new DesktopTaskBarItem.

Properties​

Instance member AllowHtml​

Boolean: Returns or sets a value indicating that the control can display html in the Text property. (Default: False)

Instance member Enabled​

Boolean: Returns or sets whether the button is enabled. (Default: True)

Value: True if the item is enabled; otherwise, false. The default is true.

Instance member Image​

Image: Returns or sets the image that is displayed in a DesktopTaskBarItem. (Default: null)

Value: The Image displayed on the button control. The default value is null.

Instance member ImagePosition​

ImagePosition: Returns or sets the position of the Image within this taskbar item. (Default: Left)

Instance member ImageSource​

String: Returns or sets the theme name or URL for the image to display in the DesktopTaskBarItem. (Default: null)

Value: The theme name or URL for the image to display in the button control.

Instance member Name​

String: Returns or sets the name of the DesktopTaskBarItem. (Default: "")

Value: The name of the DesktopTaskBarItem.

Instance member Parent​

Desktop: Returns the Desktop control that the taskbar item button is assigned to. (Default: null)

Value: The Desktop control that the DesktopTaskBarItem is assigned to.

Instance member Position​

LeftRightAlignment: Returns or sets the position of this DesktopTaskBarItem within the taskbar in the parent Desktop. (Default: Left)

Instance member Tag​

Object: Returns or sets the object that contains user data. (Default: null)

Value: An Object that contains data about the toolbar button. The default is null.

Instance member Text​

String: Returns or sets the text displayed on the taskbar item. (Default: "")

Value: The text displayed on the taskbar item. The default is an empty string ("").

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 "<br/>".

Instance member ToolTipText​

String: Returns or sets the text that appears as a ToolTip for the taskbar item. (Default: "")

Value: The text that is displayed when the mouse pointer moves over the taskbar item. The default is an empty string ("").

Instance member Visible​

Boolean: Returns or sets whether the taskbar item is visible or hidden. (Default: True)

Value: true if the taskbar item is visible; otherwise, false. The default is true.

Methods​

Protected member Dispose(disposing)​

Releases the resources used by the DesktopTaskBarItem.

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 OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member Update()​

Updates the component on the client. Overridden to repaint the taskbar in design mode.

Inherited By​

NameDescription
DesktopTaskBarItemControlRepresents a component in the Desktop control's taskbar that can host any Control.
DesktopTaskBarItemDateTimeRepresents a DateTime component in the Desktop control's taskbar.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.