Vcl.Outline.TOutlineNode.GetPrevChild

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetPrevChild(Value: LongInt): LongInt;

C++

int __fastcall GetPrevChild(int Value);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TOutlineNode

Description

Returns the Index value of the previous child of an outline node.

Call GetPrevChild to obtain the index of the previous immediate descendant of a node, preceding the child node with the index given by the Value parameter. If the child node indicated by Value has no prior sibling, or if the child node indicated by Value is not an immediate descendant of the outline node, GetPrevChild returns -1.

Index values reflect a depth-first traversal of the outline. Thus, the previous sibling of the child node indicated by Value is not simply one less than Value, unless that previous sibling has no descendants.

See Also