Skip to main content
Version: 4.1

ToolTip

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.

public class ToolTip : Component, IExtenderProvider

Constructors​

Instance member ToolTip()​

Initializes a new instance of the ToolTip without a specified container.

Instance member ToolTip(container)​

Initializes a new instance of the ToolTip class with a specified container.

NameTypeDescription
containerIContainerAn IContainer that represents the container of the ToolTip extender.

Properties​

Instance member Active​

Boolean: Returns or sets whether the ToolTip provider is currently active. (Default: True)

Instance member Alignment​

Nullable<Placement>: Returns or sets the alignment side and position of the tooltips. (Default: null)

Instance member AllowHtml​

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

Instance member AutomaticDelay​

Int32: Returns or sets the automatic delay for the ToolTip. (Default: 500)

Instance member AutoPopDelay​

Int32: Returns or sets the period of time the ToolTip remains visible if the pointer is stationary on a control with specified ToolTip text.

The default value is 5000.

Instance member ForeColor​

Color: Returns or sets the text color of the ToolTip. (Default: Color [Empty])

Instance member InitialDelay​

Int32: Returns or sets the time that passes before the ToolTip appears.

The default value is 500.

Instance member Tag​

Object: Returns or sets the object that contains programmer-supplied data associated with the ToolTip. (Default: null)

Instance member ToolTipIcon​

ToolTipIcon: Returns or sets a value that defines the type of icon to be displayed alongside the ToolTip text. (Default: Default)

Instance member ToolTipIconSource​

String: Returns or sets the icon name or URL to use as the ToolTip icon. (Default: null)

Methods​

Instance member CanExtend(target)​

Returns true if the ToolTip can offer an extender property to the specified target component.

ParameterTypeDescription
targetObjectThe target object to add an extender property to.

Returns: Boolean. true if the ToolTip class can offer one or more extender properties; otherwise, false.

Instance member Clear()​

Removes all ToolTip text currently associated with the ToolTip component.

Protected member Dispose(disposing)​

ParameterTypeDescription
disposingBoolean

Instance member GetToolTip(control)​

Retrieves the ToolTip text associated with the specified control.

ParameterTypeDescription
controlControlThe Control for which to retrieve the ToolTip text.

Returns: String. A String containing the ToolTip text for the specified control.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member SetToolTip(control, caption)​

Associates ToolTip text with the specified control.

ParameterTypeDescription
controlControlThe Control to associate the ToolTip text with.
captionStringThe ToolTip text to display when the pointer is on the control.

Instance member Show(target, text)​

Shows the tooltip net to the target component.

ParameterTypeDescription
targetIWisejComponentA Wisej control or component (i.e. column, header).
textStringText to show in the tooltip.

Instance member Show(text, x, y)​

Shows the tooltip at the specified x and y screen coordinates.

ParameterTypeDescription
textStringText to show in the tooltip.
xInt32
yInt32

Instance member Show(text, location)​

Shows the tooltip at the specified location .

ParameterTypeDescription
textStringText to show in the tooltip.
locationPointLocation of the tooltip in screen coordinates.

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.