FMX.ListBox.TListBoxSelector.SelectRange
Delphi
function SelectRange(const Item1, Item2: TListBoxItem): Boolean;
C++
bool __fastcall SelectRange(TListBoxItem* const Item1, TListBoxItem* const Item2);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | TListBoxSelector |
Description
Selects a range of items.
The parameters Item1 and Item2 define the range of the selection.
If MultiSelectStyle is not TMultiSelectStyle.None and the provided range is valid (none of the items provided as parameters is nil), SelectRange calls SetSelected for each of the items in the specified range.
If any items are affected, SelectRange calls Change.