Skip to main content
Version: 3.5

ToolTip

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.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 memberToolTip()

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

Instance memberToolTip(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 memberActive

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

Instance memberAlignment

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

Instance memberAllowHtml

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

Instance memberAutomaticDelay

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

Instance memberAutoPopDelay

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

Instance memberForeColor

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

Instance memberInitialDelay

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

Instance memberTag

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

Instance memberToolTipIcon

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

Instance memberToolTipIconSource

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

Methods

Instance memberCanExtend(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 memberClear()

Removes all ToolTip text currently associated with the ToolTip component.

Instance memberGetToolTip(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.

Instance memberSetToolTip(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 memberShow(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 memberShow(text, x, y)

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

ParameterTypeDescription
textStringText to show in the tooltip.
xInt32
yInt32

Instance memberShow(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
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.