FMX.ListView.TListViewBase.Selected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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:

Delphi:

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

C++:

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

See Also