TlsTreeviewChecklist.AddItem

TlsTreeviewChecklist

Adds a new item to the TreeviewChecklist.

function AddItem (NewName:Integer): Integer;

Description
Call AddItem to add the string NewName to the TreviewChecklist. AddItem accepts a formatted NewName like this:

Node1:Node2:NewItem

AddItem will insert the NewItem at the appropriate position in the tree. If NewName contains a new root node, the node is added as a new root node at the end of the list. AddItem returns the position of the new item in the list, where the first item in the list has a value of 0.