FMX.ListView.Adapters.Base.TAbstractListViewAdapter.OnItemsMayChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnItemsMayChange: TNotifyEvent write SetOnItemsMayChange;

C++

__property System::Classes::TNotifyEvent OnItemsMayChange = {write=SetOnItemsMayChange};

Properties

Type Visibility Source Unit Parent
event public
FMX.ListView.Adapters.Base.pas
FMX.ListView.Adapters.Base.hpp
FMX.ListView.Adapters.Base TAbstractListViewAdapter

Description

Occurs before a process that may or may not have changed the items of the list view adapter ends.

OnItemsMayChange always occurs before OnItemsCouldHaveChanged, which occurs at the beginning of the process that may change the list view adapter items.

OnItemsMayChange never occurs at the end of processes that are known to change list view adapter items, such as adding new items or deleting specific items. It only occurs on processes that can go either way, such as deleting all items, which has no effect when the list is empty, or sorting items, which has no effect if the list is already sorted.

List views use their DoItemsMayChange method to handle this event.

See Also