BaseImageListBoxControl.ImageList Property
Gets or sets the source of images to be displayed within the items.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.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.ImageIndex 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageList property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.