Vcl.ComCtrls.TCustomTreeView.GetSelectedIndex
Delphi
procedure GetSelectedIndex(Node: TTreeNode); virtual;
C++
virtual void __fastcall GetSelectedIndex(TTreeNode* Node);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Obtain selection index.
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.