Back to Devexpress

ToolTipControllerShowEventArgs.ToolTipType Property

windowsforms-devexpress-dot-utils-dot-tooltipcontrollershoweventargs-2165a5b2.md

latest5.1 KB
Original Source

ToolTipControllerShowEventArgs.ToolTipType Property

Gets or sets the type of tooltip to be displayed.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public ToolTipType ToolTipType { get; set; }
vb
Public Property ToolTipType As ToolTipType

Property Value

TypeDescription
ToolTipType

A ToolTipType value that specifies the type of tooltip to be displayed.

|

Available values:

NameDescription
Default

The default tooltip type. The actual tooltip type is determined by a control.

| | Standard |

A regular tooltip that consists of the title and contents regions.

| | SuperTip |

A SuperToolTip that supports multiple text and image regions.

| | Flyout |

A tooltip that allows you to display any control in the FlyoutPanel control.

| | Html |

A tooltip that utilizes the HTML template assigned to the controller’s HtmlTemplate property.

|

Remarks

The ToolTipType property is in effect, if the ToolTipController.ToolTipType property of the ToolTipController, which currently manages tooltips, is set to Default.

Use the ToolTipType property to specify the type of tooltip to be displayed. If the ToolTipType property is set to Default or SuperTip , a tooltip specified by the ToolTipControllerShowEventArgs.SuperTip property will be displayed. If the ToolTipType property is set to Standard , a regular tooltip will be displayed. Use the ToolTipControllerShowEventArgs.ToolTip and ToolTipControllerShowEventArgs.Title properties to specify the tooltip content. If the ToolTipType property is set to Flyout , a flyout tooltip will be shown. Use the ToolTipControllerShowEventArgs.FlyoutControl property to specify the tooltip content.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ToolTipType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

show-super-tooltip-for-disabled-control/CS/ToolTipController/Form1.cs#L52

csharp
showArgs.SelectedControl = ActiveButton;
showArgs.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;
showArgs.ToolTip = string.Format("Here is the super tool tip for button: {0}", ActiveButton.Text);

winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L23

vb
Dim apt As Appointment = CType(toolTipController1.ActiveObject, AppointmentViewInfo).Appointment
e.ToolTipType = ToolTipType.SuperTip
Dim stt As SuperToolTip = New SuperToolTip()

show-super-tooltip-for-disabled-control/VB/ToolTipController/Form1.vb#L72

vb
showArgs.SelectedControl = ActiveButton
showArgs.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip
showArgs.ToolTip = String.Format("Here is the super tool tip for button: {0}", ActiveButton.Text)

See Also

Title

ToolTip

SuperTip

ToolTipControllerShowEventArgs Class

ToolTipControllerShowEventArgs Members

DevExpress.Utils Namespace