Back to Devexpress

ToolTipItem.Text Property

windowsforms-devexpress-dot-utils-dot-tooltipitem-7d9ba806.md

latest3.8 KB
Original Source

ToolTipItem.Text Property

Gets or sets the tooltip item text.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[DefaultValue("")]
[DXCategory("Appearance")]
public string Text { get; set; }
vb
<DefaultValue("")>
<DXCategory("Appearance")>
Public Property Text As String

Property Value

TypeDefaultDescription
StringString.Empty

Specifies the text in a ToolTipItem.

|

Remarks

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

csharp
ToolTipItem itemDecsr = new ToolTipItem();
itemDecsr.Text = row[edit.Properties.DisplayMember].ToString();
ToolTipItem itemValue = new ToolTipItem();

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

vb
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

vb
Dim itemDecsr As New ToolTipItem()
itemDecsr.Text = row(edit.Properties.DisplayMember).ToString()
Dim itemValue As New ToolTipItem()

See Also

HTML-inspired Text Formatting

AllowHtmlText

Font

ImageOptions

LeftIndent

ToolTipItem Class

ToolTipItem Members

DevExpress.Utils Namespace