Vcl.ComCtrls.TTreeNode.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOf(Value: TTreeNode): Integer;

C++

int __fastcall IndexOf(TTreeNode* Value);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeNode

Description

Returns the position of an immediate child node of the calling node.

Call IndexOf to obtain the position of a child node among the children of the calling node. If Value isn't an immediate child of the calling node, IndexOf returns -1. The first child node has an index on 0, the second an index of 1, and so on.

See Also