FMX.ListView.Appearances.TListViewItem.Objects
Delphi
property Objects: TListViewItem.TListViewItemObjects read GetObjects;
C++
__property TListViewItemObjects* Objects = {read=GetObjects};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.ListView.Appearances.pas FMX.ListView.Appearances.hpp |
FMX.ListView.Appearances | TListViewItem |
Description
Used to access objects that are associated with this item.
This property returns an object of the TListViewItemObjects type. The object properties allow you to access objects that are associated with this item.
Example of Use
The following code snippets illustrate how to access the item text button for the newly added item and set the button tint color.
C++Builder:
// ....
TListView *ListView1;
TListViewItem *anItem =ListView1->Items->Add();
anItem->Text = "New item ";
// Specify the item text button tint
anItem->Objects->TextButton->TintColor = TAlphaColor(TAlphaColorRec::Green);
// ...
Delphi:
ListView1 : TListView;
anItem : TListViewItem;
anItem := ListView1.Items.Add;
anItem.Text := ' New item';
// Specify the item text button tint
anItem.Objects.TextButton.TintColor := TAlphaColorRec.Green;
See Also
- FMX.ListView.TCustomListView
- Mobile Tutorial: Using LiveBindings to Populate a List View (iOS and Android)
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.AccessoryObject
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.DetailObject
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.GlyphButton
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.ImageObject
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.TextButton
- FMX.ListView.Appearances.TListViewItem.TListViewItemObjects.TextObject