ImageListBoxItem.Image Property
Gets or sets an image displayed by this item. This property has a lower priority than the ImageListBoxItem.ImageIndex property.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[DefaultValue(null)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Image Image { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Image | null | A Image object specifying an image displayed by this item. |
Remarks
Use the Image property to assign an image to the current item.
To get the index of the image displayed in the specified item, use the BaseImageListBoxControl.GetItemImage method.
Note: when the data source is bound to the ImageListBoxControl, you must specify the data source field whose contents represent images. Use the BaseImageListBoxControl.ImageMember property for this purpose. Otherwise, images cannot be displayed.