FMX.ListView.Appearances.TListViewItem.Objects

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Objects: TListViewItemObjects read GetViewObjects;

C++

__property TListViewItemObjects* Objects = {read=GetViewObjects};

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