Skip to main content
Version: 3.5

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

Instance memberComponentTool()

Initializes a new instance of the ComponentTool class.

Properties

Instance memberAutoHide

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

Instance memberControl

Control: Returns the Control that contains this ComponentTool object.

Instance memberEnabled

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.

Instance memberImage

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

Instance memberImageSource

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

Instance memberName

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

Instance memberPosition

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

Instance memberPushed

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

Instance memberToolTipText

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

Instance memberVisible

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

Methods

Instance memberResetEnabled()

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

Instance memberUpdate()

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

Implements

NameDescription
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.