Unit 'ListViewFilterEdit' Package
[Overview][Types][Classes][Index] [#lazcontrols]

TListViewFilterEdit.RestoreSelection

Restores the Selected property for list items in FilteredListview which are stored in StoreSelection.

Declaration

Source position: listviewfilteredit.pas line 73

public procedure TListViewFilterEdit.RestoreSelection; override;

Description

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.

See also

TListViewFilterEdit.SelectionList

  

Identifies the selected items in the associated TListView control.

TListViewFilterEdit.StoreSelection

  

Clears the selection list for the control, and stores any list items from FilteredListview with their Selected property set to True.

TCustomControlFilterEdit.RestoreSelection

TCustomListView.Items

TListItems

TListItem.Selected