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.1.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
You can display an image by assigning an image collection to the ToolTipItem.Images property and specifying the required image index via the ImageIndex property. The ImageIndex property is ignored if the ToolTipItem.Icon or ToolTipItem.Image property is set. For more details, see ToolTipItem.Icon.
If the ImageIndex property value is out of the ToolTipItem.Images collection index range, no image is displayed.
When displaying images from an ImageCollection the image display size is specified by the ImageCollection.ImageSize property.