TBaseVirtualTree.AddToSelection Method (PVirtualNode)

Virtual Tree View

Adds one or more nodes to the current selection.

Pascal
procedure AddToSelection(Node: PVirtualNode); virtual; overload;
Description

AddToSelection either takes a single node or an array of nodes and adds them to the current seletion in the tree. In this process also the vsSelected state of the node is set. NewLength is the amount of nodes to add (necessary to allow NewItems to be larger than the actual used entries). ForceInsert is true if nodes must be inserted without consideration of level select constraint or already set selected flags (e.g. when loading from stream).

Notes

In the case ForceInsert is true the caller is responsible for making sure the new nodes aren't already in theĀ 

selection array!

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