RTreeView.InsertChild


public function InsertChild

Prototype:

public function InsertChild(path_after, index, item)

Parameters

path_after
the parent path as a number, string (eg: "1:2:1") or array (eg: [1,2,1])
index
a number representing the index of the added item
item
the item to be inserted as a child.

Description:

Inserts a child to the tree node specified by path_after at the index specified by the index parameter. This function has unpredictable result if the Model property is not set to MODEL_TREEVIEW. The item can be a string/number, RImage or RComboBox(for views with one column) or an array for views containing more than one column. If the {Sort} property is set to true, this function behaves exactly like AddChild. After calling this function, you can't set the {Sort} property.

Return value:

Returns the path on which the child was inserted.