ToolTipItem.Icon Property
Gets or sets the icon displayed in the ToolTipItem object.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Icon | *null* | An System.Drawing.Icon that is displayed in the ToolTipItem object. |
Remarks
It is possible to display an image within a ToolTipItem. You can use the following properties to do this:
- Icon - Allows you to display an System.Drawing.Icon object.
- ToolTipItem.Image - Allows you to display an System.Drawing.Image object.
- ToolTipItem.ImageIndex - Allows you to display an System.Drawing.Image object from the ToolTipItem.Images collection.
The Icon property has the highest priority (if an icon is assigned to the Icon property, the ToolTipItem.Image and ToolTipItem.ImageIndex are ignored). The ToolTipItem.Image property has the priority over the ToolTipItem.ImageIndex.
An icon or an image can be aligned to the left or right edge of the ToolTipItem according to the ToolTipItem.ImageAlign property.
The distance between an icon or an image and the text can be specified via the ToolTipItem.ImageToTextDistance property.