ComponentTool

Wisej.Web.ComponentTool

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represent a tool widget that can be displayed inside another control. A tool widget is different from other child controls: it's displayed inside the parent's layout. For example, the Form control shows tool widgets inside the caption bar. When a tool widget is pressed, it fires the toolClicked event on the container.

public class ComponentTool : Component

Constructors

Initializes a new instance of the ComponentTool class.

Properties

Boolean: Returns or sets whether the ComponentTool automatically hides itself when the host control loses the focus. (Default: False)

Control: Returns the Control that contains this ComponentTool object.

Boolean: Returns or sets whether the ComponentTool is enabled.

The tool can be forced enabled or disabled by assigning the Enabled property. Use ResetEnabled to reset this property to inherit from the container. If this property is not assigned, the tool will inherit the enabled state from the container Control. By assigning this property, you can force the tool to be enabled when the container is disabled and vice versa.

Image: Returns or sets the image that is displayed in a ComponentTool button.

String: Returns or sets the theme name or URL for the image to display in the ComponentTool button.

String: Returns or sets the name to apply to the ComponentTool. (Default: "")

LeftRightAlignment: Returns or sets the horizontal alignment of this ComponentTool within the parent's container. (Default: Right)

Boolean: Returns or sets whether a toggle-style ComponentTool is currently in the pushed state. (Default: False)

String: Returns or sets ToolTip text associated with the ComponentTool button. (Default: "")

Boolean: Returns or sets whether the ComponentTool is visible. (Default: True)

Methods

Resets the Enabled property to inherit the enabled state from the container Control.

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

Implements

NameDescription

All wisej components implement this interface.

Allows an object to serialize itself.

Last updated