HeaderPane
Main
Hide
Share Link
Print

ToolTipClass Class

An instance of the ToolTipClass class defines tooltip attributes of a control.

Two instances of the ToolTipClass class are available. The control's ToolTip property defines attributes for all tooltips, the ScrollTip property defines attributes for scrolltips.

Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Inheritance

Syntax

public class ToolTipClass : System.ComponentModel.INotifyPropertyChanged,
    System.IDisposable;
Public Class ToolTipClass
    Implements System.ComponentModel.INotifyPropertyChanged
    Implements System.IDisposable

Constructors

This class cannot be instantiated.

Properties

PublicHaveToolTipReturns whether a tooltip is currently displayed.
PublicPositionDefines the position of the tooltip, relative to the data it references.
PublicShowAlwaysDefines whether tooltips are always displayed.
PublicStyleDefines the style of the tooltip.
PublicToolTipIconDefines the optional icon of the tooltip.
PublicToolTipTitleDefines the optional title of the tooltip.
PublicUseAnimationDefines whether the tooltip uses an animation effect when it is being shown or hidden.
PublicUseFadingDefines whether the tooltip uses a fading effect when it is being shown or hidden.

Methods

PublicDisposeReleases all resources used.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicHideHides the current tooltip.
PublicStaticHideToolTipHides the current balloon-style tooltip displayed using the ToolTipClass.ShowToolTip method.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicStaticShowToolTipDisplays a balloon-style tooltip.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Events

PublicPropertyChangedOccurs when a property of the ToolTipClass object is modified.

Examples

VB.NET

Private Function CenterOf(ByVal r As Rectangle) As Point
    Dim pt As Point = r.Location
    pt.Offset(r.Width / 2, r.Height / 2)
    Return pt
End Function

Private TimerCounter As Integer = 0
Private ToolTip As ToolTipClass

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

    Static Dim LastFunc As InfoTip.FPtr = Nothing

    If Not LastFunc Is Nothing Then
        LastFunc()
        LastFunc = Nothing

See Also Classes | SftTree/NET 3.0