Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseImageListBoxControl.Items Property

Accesses the item collection, when the control is not bound to a data source.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public ImageListBoxItemCollection Items { get; }

#Property Value

Type Description
ImageListBoxItemCollection

An ImageListBoxItemCollection object representing the items collection.

#Remarks

When the control is not bound to a data source, use the Items property to access the control’s item collection. You can add, remove and access individual items using index notation. Each item is represented by the ImageListBoxItem object.

To improve the control’s performance while performing multiple changes on the item collection, use the ListBoxItemCollection.BeginUpdate/ListBoxItemCollection.EndUpdate methods.

When the control is bound to a data source via the BaseListBoxControl.DataSource property, the Items collection is always empty. In this instance, to access particular items, use the BaseListBoxControl.GetItem method.

Use the ItemCount property to get the number of items in the ListBox control in bound and unbound modes.

See Also