RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.SetLevel Method

Sets the level of an outline node.

Pascal
procedure SetLevel(Node: TOutlineNode; CurLevel: Cardinal; NewLevel: Cardinal);
C++
__fastcall SetLevel(TOutlineNode Node, unsigned CurLevel, unsigned NewLevel);

Call SetLevel to change the nesting depth of the node specified by the Node parameter. CurLevel is the node's current level and NewLevel is the node's new level. 

For example, consider the outline specified by the following value of Lines:

NodeA
 NodeB
  NodeC
 NodeD

Calling SetLevel for NodeD with CurLevel set to 2 and NewLevel set to 4 results in the outline with the following value of Lines:

NodeA
 NodeB
  NodeC
   NodeD

That is, the parent of NodeD was changed from NodeA to NodeC. 

 

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