FMX.ListView.TListViewItem.Objects

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Objects: TListViewItem.TListViewItemObjects read GetObjects;

C++

__property TListViewItemObjects* Objects = {read=GetObjects};

Properties

Type Visibility Source Unit Parent
property public
FMX.ListView.pas
FMX.ListView.hpp
FMX.ListView 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.

Appmethod C++:

// ....
TListView *ListView1;
TListViewItem *anItem =ListView1->Items->Add();
anItem->Text = "New item ";
// Specify the item text button tint
anItem->Objects->TextButton->TintColor = TAlphaColor(TAlphaColorRec::Green);
// ...

Object Pascal:

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