New to Telerik UI for WinFormsStart a free 30-day trial

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

Constructors

C#
public RadToolTip()
C#
public RadToolTip(IContainer container)
Parameters:containerIContainer
C#
public RadToolTip(RootRadElement root)
Parameters:rootRootRadElement

Fields

C#
public const int Padding = 10
C#
public const int VerticalSpacingToCursor = 30

Properties

Returns the current text if it is already set.

C#
public string CurrentText { get; }

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.

C#
public bool IsDisposed { get; }
Property Value:

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

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

C#
public Font ToolTipFont { get; }
Property Value:

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

Methods

C#
protected virtual Point CorrectShowPoint(Point point, string text)
Parameters:pointPointtextstringReturns:

Point

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: ToolTip.Dispose(bool)

Hides this RadToolTip instance.

C#
public void Hide()

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

C#
public void Show(string text, int x, int y, int duration)
Parameters:textstring

A string containing the new RadToolTip text.

xint

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

yint

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

durationint

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

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

C#
public void Show(string text, int x, int y)
Parameters:textstring

A string containing the new RadToolTip text.

xint

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

yint

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

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

C#
public void Show(string text, int duration)
Parameters:textstring

A string containing the new RadToolTip text.

durationint

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

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

C#
public void Show(string text, Point point, int duration)
Parameters:textstring

A string containing the new RadToolTip text.

pointPoint

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

durationint

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

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

C#
public void Show(string text, Point point)
Parameters:textstring

A string containing the new RadToolTip text.

pointPoint

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

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

C#
public void Show(string text)
Parameters:textstring

A string containing the new RadToolTip text.