windowsforms-devexpress-dot-utils-dot-tooltipcontrollershoweventargs-327cd4e5.md
Gets or sets the text for the regular tooltip.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public string ToolTip { get; set; }
Public Property ToolTip As String
| Type | Description |
|---|---|
| String |
The string that is the text to display in the regular tooltip.
|
The ToolTip property allows you to specify the text for the regular tooltip . The size of the tooltip window will be calculated based on the text’s length and font. To learn about regular tooltips and SuperToolTips, see ToolTipControllerShowEventArgs.ToolTipType.
You can also provide a title and image for a regular tooltip via the ToolTipControllerShowEventArgs.ToolTipType and ToolTipControllerShowEventArgs.ToolTipImage properties.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ToolTip 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.
if(dashboardItem.Metadata.Weight == null)
e.ToolTip = string.Empty;
else if(e.SelectedObject is SankeyLink) {
show-super-tooltip-for-disabled-control/CS/ToolTipController/Form1.cs#L53
showArgs.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip;
showArgs.ToolTip = string.Format("Here is the super tool tip for button: {0}", ActiveButton.Text);
ToolTipController.ShowHint(showArgs);
winforms-lookup-show-custom-tooltips/CS/LookUpEditWithHints/Form1.cs#L39
ToolTipControllerShowEventArgs ee = e as ToolTipControllerShowEventArgs;
ee.ToolTip += " + custom tool tip also can be added";
}
If dashboardItem.Metadata.Weight Is Nothing Then
e.ToolTip = String.Empty
ElseIf TypeOf e.SelectedObject Is SankeyLink Then
winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L49
e.Title = "Resource"
e.ToolTip = res.Caption
End If
show-super-tooltip-for-disabled-control/VB/ToolTipController/Form1.vb#L73
showArgs.ToolTipType = DevExpress.Utils.ToolTipType.SuperTip
showArgs.ToolTip = String.Format("Here is the super tool tip for button: {0}", ActiveButton.Text)
ToolTipController.ShowHint(showArgs)
winforms-lookup-show-custom-tooltips/VB/LookUpEditWithHints/Form1.vb#L33
Dim ee As ToolTipControllerShowEventArgs = TryCast(e, ToolTipControllerShowEventArgs)
ee.ToolTip += " + custom tool tip also can be added"
End Sub
See Also
ToolTipControllerShowEventArgs Class