BaseImageListBoxControl.Items Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
public ImageListBoxItemCollection Items { get; }
<DXCategory("Behavior")>
Public ReadOnly Property Items As ImageListBoxItemCollection

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.

See Also