TreeView.insertNode

Overview | Methods | This Package | All Packages

TreeView.insertNode

Inserts the specified node into the tree view control as a root node at the specified position.

Syntax

public void insertNode( int index, TreeNode node )

Parameters

index

The zero-based position where you want to insert the node into the tree view control. If this number is less than zero, the node is inserted at the top of the control. If this number is greater than the number of nodes currently in the control, the node is inserted at the bottom of the control.

node

A TreeNode object that represents the node that you want insert into the tree view control.