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

TcxListBox.ItemObject Property

Specifies the object associated with the selected item.

#Declaration

Delphi
property ItemObject: TObject read; write;

#Property Value

Type
TObject

#Remarks

Setting the ItemObject property locates the item which is associated with the specified object. If found, the located item is selected within the list box (the ItemIndex property is changed correspondingly.) Otherwise, the selection is cleared (the ItemIndex property is set to -1.) Note that assigning a value to the ItemIndex property when the MultiSelect property’s value is equal to True has no visual effect.

Use the ItemObject property to access the object associated with the selected item.

Note

Use the Items.Objects property to associate an item with a specific object and also to access all the objects which are associated with the items within the list box. You have to provide complete management for the objects that you want to associate with items in a list box.

See Also