TBaseVirtualTree.FindNodeInSelection Method

Virtual Tree View

Helper method to find the given node in the current selection.

Pascal
function FindNodeInSelection(P: PVirtualNode; var Index: Integer; LowBound: Integer; HighBound: Integer): Boolean; virtual;
Description

This method does a binary search of the given node in the internal selection array which is sorted by memory references. The search is limited to the area given by LowBound and HighBound. If the node could be found then true is returned and Index is set to the found node position.

Class
Links
What do you think about this topic? Send feedback!