FMX.ListView.Adapters.Base.TFilterableListViewItems.Filter
Delphi
property Filter: TFilterPredicate read GetFilterPredicate write SetFilterPredicate;
C++
__property System::DelphiInterface<System::Sysutils::TPredicate__1<System::UnicodeString> > Filter = {read=GetFilterPredicate, write=SetFilterPredicate};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.ListView.Adapters.Base.pas FMX.ListView.Adapters.Base.hpp |
FMX.ListView.Adapters.Base | TFilterableListViewItems |
Description
String-based predicate that evaluates a string from a list item and returns True
if the string passes the filter, or False
otherwise. List items that do not pass the filter are not displayed on the list view.
The implementation of DoFilterItem in subclasses of TFilterableListViewItems is responsible for enforcing the specified filter. Usually, DoFilterItem determines which strings from list items the filter evaluates. However, implementations in subclasses may define a filtering logic that does not take the value of Filter into account.