Skip to main content

TcxListBox.ItemObject Property

Specifies the object associated with the selected item.

Declaration

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