BaseImageListBoxControl.GetItemImage(Int32) Method
Gets the image displayed within the specified item.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An integer value representing the zero-based index of the item. |
Returns
Type | Description |
---|---|
Image | A Image object value specifying the image displayed within the specified item. -1 if no item is found. |
Remarks
Each ImageListBoxItem can display an image contained within the object represented by the BaseImageListBoxControl.ImageList property. The GetItemImage method allows you to get the image displayed in the specified item. This method can be especially useful when the data source is bound to the control. Note that the method returns -1 if the BaseImageListBoxControl.ImageMember property value is set to String.Empty.
When no data source is bound, you can obtain the image of the specified item using the ImageListBoxItem.Image property.