Library Vcl NextSuite 6 NextLayout6 Reference Classes TNxLayoutNodeList Add

Add

Adds a node of type specified by ClassType parameter at the end of the list. Text property of node can be set via optional Text parameter.

pas
function Add(ClassType: TNxLayoutNodeClass; Text: WideString = ''): TNxLayoutNode6; overload;

Example

pas
NextLayout61.Nodes.Add(TNxSpinLayoutNode6, 'Size');

Adding node and setting properties:

pas
var
  SizeNode: TNxLayoutNode6;
begin
  SizeNode := NextLayout61.Nodes.Add(TNxSpinLayoutNode6, 'Size');
  SizeNode.TextAfter := 'points';

Sign in