FMX.ListBox.TListBoxItem.ItemData
Delphi
property ItemData: TListBoxItemData read FItemData write SetItemData;
C++
__property TListBoxItemData* ItemData = {read=FItemData, write=SetItemData};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | TListBoxItem |
Description
Specifies various data that can be attached to a TListBoxItem in order to be shown in the list box.
Use the ItemData property in order to attach various data to a list box item. This data can then be displayed in the list box.
ItemData has four sub-properties:
Accessory
- lets you add to the selected list box item one of the following items:Bitmap
- lets you add a bitmap image to your item.Detail
- lets you add an additional text that describes your list box item.Text
- allows you to change the text displayed on your list box item.
In the picture above, two list box items are present in the list:
- The first one has a bitmap image, additional text description and no accessory icon.
- The second one has a bitmap image, additional text description and the Detail accessory icon.