Restores the Selected property for list items in FilteredListview which are stored in StoreSelection.
Source position: listviewfilteredit.pas line 73
public procedure TListViewFilterEdit.RestoreSelection; override; |
RestoreSelection is an overridden method in TListViewFilterEdit. It implements the abstract virtual method from the ancestor class.
RestoreSelection locates and updates the Selected property for TListItem entries found in th associated TListView control. RestoreSelection visits each of the caption values in SelectionList and calls the IndexOf method for the Items in FilteredListview. When a caption value is located, the Selected property for the TListItem entry is set to True.
No actions are performed in the method when SelectionList does not contain any caption values (Count = 0) or when FilteredListview has not been assigned.
RestoreSelection is used in the implementation for the ApplyFilter method in the ancestor class.
See StoreSelection for the actions performed to store the selected items in FilteredListview to the SelectionList property.
|
Identifies the selected items in the associated TListView control. |
|
|
Clears the selection list for the control, and stores any list items from FilteredListview with their Selected property set to True. |
|
Lazarus Controls Package (LazControls) | Version 3.99-f3aa0586d9 (2024-02-24) | Home |