Class
RadToolTip

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. RadToolTip Provides extended functionality by removing the necessity to have a control in the element tree

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RadToolTip : ToolTip, IComponent, IDisposable, IExtenderProvider

Inheritance: objectMarshalByRefObjectComponentToolTipRadToolTip

Implements: IComponentIDisposableIExtenderProvider

Inherited Members ToolTip.CanExtend(object)ToolTip.GetToolTip(Control)ToolTip.RemoveAll()ToolTip.SetToolTip(Control, string)ToolTip.Show(string, IWin32Window)ToolTip.Show(string, IWin32Window, int)ToolTip.Show(string, IWin32Window, Point)ToolTip.Show(string, IWin32Window, Point, int)ToolTip.Show(string, IWin32Window, int, int)ToolTip.Show(string, IWin32Window, int, int, int)ToolTip.Hide(IWin32Window)ToolTip.StopTimer()ToolTip.ToString()ToolTip.ActiveToolTip.AutomaticDelayToolTip.AutoPopDelayToolTip.BackColorToolTip.CreateParamsToolTip.ForeColorToolTip.IsBalloonToolTip.InitialDelayToolTip.OwnerDrawToolTip.ReshowDelayToolTip.ShowAlwaysToolTip.StripAmpersandsToolTip.TagToolTip.ToolTipIconToolTip.ToolTipTitleToolTip.UseAnimationToolTip.UseFadingToolTip.DrawToolTip.PopupComponent.Dispose()Component.GetService(Type)Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadToolTip()

Declaration

cs-api-definition
public RadToolTip()

RadToolTip(IContainer)

Declaration

cs-api-definition
public RadToolTip(IContainer container)

Parameters

container

IContainer

RadToolTip(RootRadElement)

Declaration

cs-api-definition
public RadToolTip(RootRadElement root)

Parameters

root

RootRadElement

Fields

Padding

Declaration

cs-api-definition
public const int Padding = 10

Field Value

int

VerticalSpacingToCursor

Declaration

cs-api-definition
public const int VerticalSpacingToCursor = 30

Field Value

int

Properties

CurrentText

Returns the current text if it is already set.

Declaration

cs-api-definition
public string CurrentText { get; }

Property Value

string

IsDisposed

Gets a value indicating whether the control has been disposed of. When a control is disposed, it releases all resources that it is using, including any managed resources.

Declaration

cs-api-definition
public bool IsDisposed { get; }

Property Value

bool

True if the control has been disposed; otherwise, false.

ToolTipFont

Gets or sets the font used for displaying the tooltip text.

Declaration

cs-api-definition
public Font ToolTipFont { get; }

Property Value

Font

A Font that represents the font of the tooltip. This property allows customization of the appearance of the tooltip text.

Methods

CorrectShowPoint(Point, string)

Declaration

cs-api-definition
protected virtual Point CorrectShowPoint(Point point, string text)

Parameters

point

Point

text

string

Returns

Point

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides ToolTip.Dispose(bool)

Hide()

Hides this RadToolTip instance.

Declaration

cs-api-definition
public void Hide()

Show(string)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text)

Parameters

text

string

A string containing the new RadToolTip text.

Show(string, Point)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text, Point point)

Parameters

text

string

A string containing the new RadToolTip text.

point

Point

A Point containing the offset, in pixels, relative to the upper-left corner of the screen, to display the RadToolTip.

Show(string, Point, int)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text, Point point, int duration)

Parameters

text

string

A string containing the new RadToolTip text.

point

Point

A Point containing the offset, in pixels, relative to the upper-left corner of the screen, to display the RadToolTip.

duration

int

An int containing the duration, in milliseconds, to display the RadToolTip.

Show(string, int)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text, int duration)

Parameters

text

string

A string containing the new RadToolTip text.

duration

int

An int containing the duration, in milliseconds, to display the RadToolTip.

Show(string, int, int)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text, int x, int y)

Parameters

text

string

A string containing the new RadToolTip text.

x

int

The horizontal offset, in pixels, relative to the upper-left corner of the screen, to display the ToolTip.

y

int

The vertical offset, in pixels, relative to the upper-left corner of the screen, to display the ToolTip.

Show(string, int, int, int)

Sets the RadToolTip text and displays the RadToolTip modally. Uses CursorPosition relative to screen coordinates to position the RadToolTip.

Declaration

cs-api-definition
public void Show(string text, int x, int y, int duration)

Parameters

text

string

A string containing the new RadToolTip text.

x

int

The horizontal offset, in pixels, relative to the upper-left corner of the screen, to display the ToolTip.

y

int

The vertical offset, in pixels, relative to the upper-left corner of the screen, to display the ToolTip.

duration

int

An int containing the duration, in milliseconds, to display the RadToolTip.