Link Search Menu Expand Document

STreeItem.Append Method

Explanation Add the item to the end of own child.
Call format item.Append( title )
OR
item.Append( xmlDoc )
Return value STreeItem object
If you pass a string as an argument, it returns the accessor for the added item.
If you 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 parent = STree1.RootItem;
    var item_1 = parent.Append("abc");
    var item_2_1 = parent.Append("def").Append("ghi");
    
    var xmlDomImpl = new XmlDomImplementation;
    var xmlStr =
        "<xml1> "+
        "  <item title=\"def\" openicon=\"1\"/>" +
        "  <item title=\"ghi\" closeicon=\"2\">"+
        "    <item title=\"hij\" closeicon=\"3\" openicon=\"4\" value=\"111\">" +
        "      <item title=\"AAA\"/>" +
        "      <item title=\"BBB\"/>" +
        "      <item title=\"CCC\"/>" +
        "    </item>" +
        "    <item title=\"klm\"/>" +
        "  </item>" +
        "</xml1>";
    var xmlDoc = XmlDomImpl.Parse(xmlStr);
    var item_def = parent.Append(xmlDoc);
    
Related item Delete, Insert methods