Back to Devexpress

ToolTipItem.Image Property

windowsforms-devexpress-dot-utils-dot-tooltipitem-25c0bfc0.md

latest6.4 KB
Original Source

ToolTipItem.Image Property

Gets or sets the image displayed in this tooltip region. This property is obsolete. Use the ToolTipItem.ImageOptions.Image property instead.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
[DefaultValue(null)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Image Image { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(Nothing)>
Public Property Image As Image

Property Value

TypeDefaultDescription
Imagenull

An Image object that specifies an image displayed in this tooltip region.

|

Remarks

ToolTipItem.ImageOptions allow you to display the image in the item:

You can also use the ToolTipItem.Icon property to specify the item’s icon. The Icon property has priority over ImageOptions.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Image 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-grid-display-popup-image-on-mouse-hover/CS/Form1.cs#L38

csharp
ToolTipItem item1 = new ToolTipItem();
item1.Image = im;
sTooltip1.Items.Add(item1);

winforms-checked-combobox-show-tooltips-for-selected-items/CS/WindowsApplication3/Form1.cs#L91

csharp
ToolTipItem itemImage = new ToolTipItem();
itemImage.Image = GetToolTipImage(row, itemImage);
superToolTip.Items.Add(itemDecsr);

winforms-tabbed-mdi-manager-custom-tab-header-tooltip/CS/WindowsApplication1/Helper/ThumbnailHintHelper.cs#L42

csharp
ToolTipItem item1 = new ToolTipItem();
item1.Image = ThumbnailHelper.FormToBitmap((page as XtraMdiTabPage).MdiChild, new Size(200, 200));
superTip.Items.Add(item1);

winforms-grid-display-popup-image-on-mouse-hover/VB/Form1.vb#L36

vb
Dim item1 As ToolTipItem = New ToolTipItem()
item1.Image = im
sTooltip1.Items.Add(item1)

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

vb
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"))
ttiBody.Image = SystemIcons.Information.ToBitmap()
ttiFooter.AllowHtmlText = DefaultBoolean.True

winforms-checked-combobox-show-tooltips-for-selected-items/VB/WindowsApplication3/Form1.vb#L82

vb
Dim itemImage As New ToolTipItem()
itemImage.Image = GetToolTipImage(row, itemImage)
superToolTip.Items.Add(itemDecsr)

winforms-tabbed-mdi-manager-custom-tab-header-tooltip/VB/WindowsApplication1/Helper/ThumbnailHintHelper.vb#L34

vb
Dim item1 As ToolTipItem = New ToolTipItem()
item1.Image = FormToBitmap(TryCast(page, XtraMdiTabPage).MdiChild, New Size(200, 200))
superTip.Items.Add(item1)

See Also

ImageOptions

ToolTipItem Class

ToolTipItem Members

DevExpress.Utils Namespace