Concept Framework 1.0 documentation Contents | Index

RTreeView.InsertChild

Name Type Access Version Deprecated
InsertChild function public version 1.0 no

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.

Returns:
Returns the path on which the child was inserted.

Documented by Eduard Suica, generation time: Thu Oct 15 20:01:58 2009 GMT(c)2009 RadGs Software