FMX.ListBox.TListBox
Delphi
TListBox = class(TCustomListBox)
C++
class PASCALIMPLEMENTATION TListBox : public TCustomListBox
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | FMX.ListBox |
Description
A TListBox displays a set of items in a scrollable list.
To add items, right-click the combo box on the form and choose Add Item. This creates a new TListBoxItem object that appears in the Structure pane and can be edited individually. You can also manage the items in the combo box by double-clicking the combo box control in the Form Designer. This opens the Items Designer dialog where you can add, delete, and change the order of the items.
With the TListBox you can:
- Set the list to accept single-item selection or multi-item selection using the MultiSelect property.
- Attach check boxes to the list items by using the ShowCheckboxes property.
- Set different backgrounds for consecutive list items by using the AlternatingRowBackground.
See Also
- Mobile Tutorial: Using ListBox Components to Display a Table View (iOS and Android)
- FMX.ListBox.TCustomListBox.ShowCheckboxes
- FMX.ListBox.TCustomListBox.MultiSelect
- FMX.ListBox.TCustomListBox.AlternatingRowBackground