BaseImageListBoxControl.ImageList Property
Gets or sets the source of images to be displayed within the items.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.ImageOptions property.
The ImageList property accepts the following image collections:
- ImageCollection - Supports image transparency.
- SharedImageCollection - Supports image transparency. Allows you to share images between controls within multiple forms.
- SvgImageCollection - Stores vector icons that can scale without losing their quality on high resolution devices.
- ImageList.
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.