Skip to main content

BaseImageListBoxControl.Items Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.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