RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.GetImageIndex Method

Obtain image index.

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

Call GetImageIndex to set the image index of a tree node. GetImageIndex as implemented in TCustomTreeView does nothing except invoke the handler for the OnGetImageIndex event, if one is assigned.  

Descendants can override GetImageIndex to provide a class-specific implementation for setting the tree node's image index. 

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!