ToolTipItem.ImageIndex Property
Gets or sets the zero-based index of an image in a ToolTipItem.Images collection to be displayed in a ToolTipItem object.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v19.2.dll
Declaration
[Browsable(false)]
[DefaultValue(-1)]
[ImageList("ImageList")]
public int ImageIndex { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | -1 | The zero-based index of an image in an ToolTipItem.Images collection to be displayed in a ToolTipItem object. |
Remarks
The ToolTipItem.ImageOptions provides access to the following properties that allow you to specify the image displayed in the item:
- Image — a raster image. This property is equivalent to the ToolTipItem.Image property.
- ImageIndex — an index of the image in the Images collection. These properties are equivalent to the
ToolTipItem.ImageIndex
and ToolTipItem.Images property. - ImageUri — a value that specifies the image’s universal resource identifier.
- SvgImage — a vector image.
- ImageToTextDistance — the indentation of the text from the image. This property is equivalent to the ToolTipItem.ImageToTextDistance property.
- Alignment — whether the image is aligned at the left or right. This property is equivalent to the ToolTipItem.ImageAlign property.
You can also use the ToolTipItem.Icon property to specify the item’s icon. The Icon property has priority over ImageOptions.
See Also