BaseListBoxControl.GetItem(Int32) Method

Gets an item at the specified position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public object GetItem(
    int index


Name Type Description
index Int32

An integer value representing the zero-based index of an item to be returned.


Type Description

An object representing an item at the specified position. null (Nothing in Visual Basic) if no item is found.


If a list box control is bound to a data source via the BaseListBoxControl.DataSource property, the GetItem method returns an object representing a single record in the data source. The index parameter must specify the item’s index in the data source.

If the list box control is not bound to a data source, an item with the specified index is returned from the control’s Items collection.

See Also