FMX.ListView.TListView.OnItemClick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnItemClick: TAppearanceListView.TItemEvent read FOnItemClick write FOnItemClick;

C++

__property OnItemClick;

Properties

Type Visibility Source Unit Parent
event published
FMX.ListView.pas
FMX.ListView.hpp
FMX.ListView TListView

Description

Occurs immediately after clicking an item from the list view.

FMX.ListView.TListView.OnItemClick inherits from FMX.ListView.TAppearanceListView.OnItemClick. All content below this line refers to FMX.ListView.TAppearanceListView.OnItemClick.

Occurs immediately after clicking an item from the list view.

Write an OnItemClick event handler to respond to clicking on an item from the list view component.

OnItemClick is an event of type TItemEvent.

Do not modify the contents of the list view in the OnItemClick event handler (do not add, remove, update or change the order of list view items). If you need to do that, use OnItemClickEx event handler instead. It is safe to modify the content of the items themselves in both of those handlers.

The OnItemClick event handler receives the following parameters:

Parameter Description

Sender

The instance of TCustomListView to which the clicked item belongs.

AItem

The instance of Appearances.TListViewItem that you click on.

See Also