RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.GetSelectedIndex Method

Obtain selection index.

Pascal
procedure GetSelectedIndex(Node: TTreeNode); virtual;
C++
virtual __fastcall GetSelectedIndex(TTreeNode Node);

Call GetSelectedIndex to set the image index of a tree node when the tree node is selected. GetSelectedIndex invokes the handler for the OnGetSelectedIndex event, if one is assigned. 

Descendants can override GetSelectedIndex to implement a class-specific method of setting the selected tree node's image index. 

Node is the tree node in which the image index is set. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!