Table of Contents

Class ToolTipFactory

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods and properties which allow to change tooltips behavior.

public static class ToolTipFactory
Inheritance
ToolTipFactory

Properties

Handler

Gets or sets handler.

LastContainerWithToolTip

Gets or sets the last UserControl that displayed a tooltip. Typically, this property is managed internally and should not be changed manually.

LastControlWithToolTip

Gets or sets the last control that displayed a tooltip. Typically, this property is managed internally and should not be changed manually.

LastToolTipId

Gets or sets the unique identifier of the last tooltip displayed. Typically, this property is managed internally and should not be changed manually.

OverlayToolTipFont

Gets or sets font used for overlay tooltips. If null (default) is specified, DefaultFont is used.

OverlayToolTipOffset

Gets or sets the offset, in dips, applied to the position of overlay tooltips.

Methods

BindOverlayToolTips()

Binds tooltips to overlay controls, enabling the display of tooltips for controls within an overlay container.

GetToolTip(AbstractControl?)

Gets tooltip using IToolTipProvider specified in the control or in one of its parents.

HideLastShownInOverlay()

Hides the last tooltip displayed in the overlay, if one is currently shown.

SetAutoPop(long)

Sets the delay after which the tooltip disappears or how long a tooltip remains visible.

SetDelay(long)

Sets the delay after which the tooltip appears.

SetEnabled(bool)

Enables or disables tooltips globally.

SetMaxWidth(int)

Sets tooltip maximal width in pixels.

SetReshow(long)

Sets the delay between subsequent tooltips to appear.

ShowInOverlay(AbstractControl?, UserControl, object?)

Displays the specified tooltip in an overlay.

ShowToolTip(AbstractControl?, object?, string?, MessageBoxIcon?, uint?, PointD?)

Shows tooltip with the specified parameters using IToolTipProvider specified in the control or in one of its parents.

UnbindOverlayToolTips()

Unbinds and removes any active overlay tooltips from the user interface.

Events

OverlayToolTipHide

Occurs when the overlay tooltip should be hidden.

OverlayToolTipShowing

Occurs when an overlay tooltip is about to be displayed, allowing subscribers to modify, suppress or show the tooltip.