Vcl.Outline.TCustomOutline.SetLevel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetLevel(Node: TOutlineNode; CurLevel, NewLevel: Cardinal);

C++

void __fastcall SetLevel(TOutlineNode* Node, unsigned CurLevel, unsigned NewLevel);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TCustomOutline

Description

Sets the level of an outline node.

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.

See Also