BaseListBoxControl.GetItem(Int32) Method

Gets an item at the specified position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public object GetItem(
    int index
)
Public Function GetItem(
    index As Integer
) As Object

Parameters

Name Type Description
index Int32

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

Returns

Type Description
Object

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

Remarks

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