Back to Devexpress

BaseImageListBoxControl.ImageIndexMember Property

windowsforms-devexpress-dot-xtraeditors-dot-baseimagelistboxcontrol-68224242.md

latest3.7 KB
Original Source

BaseImageListBoxControl.ImageIndexMember Property

Gets or sets the name of the data source field that provides image indexes for listbox items. This property is not supported when listbox items are rendered based on Item Templates.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Data")]
public virtual string ImageIndexMember { get; set; }
vb
<DXCategory("Data")>
<DefaultValue("")>
Public Overridable Property ImageIndexMember As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value specifying the name of the data source field whose contents represent image indexes.

|

Remarks

The ImageListBoxControl can be bound to data using the BaseListBoxControl.DataSource property. Use ImageIndexMember to define the data source field that provides the indexes of the images displayed within the items. These indexes address images in the image collection specified by the BaseImageListBoxControl.ImageList property.

Changing the ImageIndexMember property value at runtime raises the BaseImageListBoxControl.ImageIndexMemberChanged event.

Note

The ImageIndexMember property is not supported when items are rendered based on Item Templates.

You can also use the BaseImageListBoxControl.ImageMember property to assign images from the data source to items. BaseImageListBoxControl.ImageMember has priority over ImageIndexMember.

See Also

DataSource

DisplayMember

ValueMember

ImageIndexMemberChanged

ImageList

GlyphAlignment

ImageMember

GetItemImage(Int32)

GetItemImageIndex(Int32)

BaseImageListBoxControl Class

BaseImageListBoxControl Members

DevExpress.XtraEditors Namespace