FMX.ListView.TListViewBase.Selected

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Selected: TListItem read GetSelected write SetSelected;

C++

__property Fmx::Listview::Types::TListItem* Selected = {read=GetSelected, write=SetSelected};

Properties

Type Visibility Source Unit Parent
property public
FMX.ListView.pas
FMX.ListView.hpp
FMX.ListView TListViewBase

Description

List item that is currently selected on the list view.

This property is nil if no item is selected.

To use Selected as an instance of Appearances.TListViewItem, you must cast it as such:

Object Pascal:

SelectedItemText := TListViewItem(TListView1.Selected).Text;

C++:

SelectedItemText = ((TListViewItem*)(TListView1->Selected))->Text;

See Also