Link Search Menu Expand Document

STreeItem.Insert Method

Explanation Add the item before the node.
Call format item.Insert( title )
OR
item.Insert( xmlDoc )
Return value STreeItem object
If pass a string as an argument, it returns the accessor for the added item. If pass an XMLDocument object as an argument, it returns the first object added.
Arguments title Character string to be set in the Title property of the item to be added
xmlDoc XmlDocument object with a Specific Format
XmlDocument with Unicode internal character code cannot be specified.
Exception EXT-12 Invalid accessor
Example of use
    var item = STree1.RootItem.Child;
    item.Insert("abc");
    
Related item Append, Delete methods