windowsforms-devexpress-dot-utils-dot-tooltipitem-7d9ba806.md
Gets or sets the tooltip item text.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DefaultValue("")]
[DXCategory("Appearance")]
public string Text { get; set; }
<DefaultValue("")>
<DXCategory("Appearance")>
Public Property Text As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
Specifies the text in a ToolTipItem.
|
You can use HTML tags to format the text. For instance, the font size can be specified with the help of HTML tags. To learn how to enable HTML formatting, see the ToolTipItem.AllowHtmlText topic.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Text 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.
winforms-checked-combobox-show-tooltips-for-selected-items/CS/WindowsApplication3/Form1.cs#L87
ToolTipItem itemDecsr = new ToolTipItem();
itemDecsr.Text = row[edit.Properties.DisplayMember].ToString();
ToolTipItem itemValue = new ToolTipItem();
winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L28
Dim ttiFooter As ToolTipItem = New ToolTipItem()
ttiTitle.Text = "Appointment"
ttiBody.Text = String.Format("Subject: {0} " & Microsoft.VisualBasic.Constants.vbLf & "Description: {1}" & Microsoft.VisualBasic.Constants.vbLf & "Price: {2}", apt.Subject, apt.Description, apt.CustomFields("cfPrice"))
winforms-checked-combobox-show-tooltips-for-selected-items/VB/WindowsApplication3/Form1.vb#L78
Dim itemDecsr As New ToolTipItem()
itemDecsr.Text = row(edit.Properties.DisplayMember).ToString()
Dim itemValue As New ToolTipItem()
See Also