Show: Delphi C++
Display Preferences

FMX.ListBox.TListBox

From RAD Studio API Documentation
Jump to: navigation, search

FMX.ListBox.TCustomListBoxFMX.Layouts.TScrollBoxFMX.Controls.TStyledControlFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TListBox

Delphi

TListBox = class(TCustomListBox)

C++

class PASCALIMPLEMENTATION TListBox : public TCustomListBox

Contents

Properties

Type Visibility Source Unit Parent
class public
FMX.ListBox.pas
FMX.ListBox.hpp
FMX.ListBox FMX.ListBox
IOSListBoxSample1.png

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

Code Examples and Samples

Personal tools
Translations