Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseImageListBoxControl.GetItemImage(Int32) Method

Gets the image displayed within the specified item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual Image GetItemImage(
    int index
)

#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.ImageOptions property.

See Also