A newer version of this page is available. Switch to the current version.

BaseImageListBoxControl.ImageList Property

Gets or sets the source of images to be displayed within the items.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(null)]
public object ImageList { get; set; }

Property Value

Type Default Description
Object

null

An object which is the source of images.

Remarks

The image list box is used to display a list of items an end-user can select. It can also display an image next to an item in the list. Use the ImageList property to specify the source of the images (bitmaps, icons, or meta files). To assign images to individual items, use the ImageListBoxItem.ImageIndex property.

The ImageList property accepts the following image collections:

NOTE

When an ImageListBoxControl is data bound, you must define the data source field whose contents represent the image indexes. Use the BaseImageListBoxControl.ImageIndexMember property for this purpose.

If your data source contains images, use the BaseImageListBoxControl.ImageMember property to assign images to items.

See Also