TreeItem object

Property Description Access Type
TreeItem.next Get the next TreeItem readonly TreeItem | nil
TreeItem.previous Get the previous TreeItem readonly TreeItem | nil
TreeItem.count Get the TreeItem count of subitems readonly number
TreeItem.index Get the TreeItem index in the Tree readonly number
Tree.subitems Get/set the subitems of the TreeItem readwrite table
TreeItem.text Get/set the TreeItem caption readwrite string
TreeItem.parent Get TreeItem's parent object readonly Tree | TreeItem
Method Description Return value
TreeItem.loadicon() Set the TreeItem icon boolean
TreeItem.add() Add one or more subitems to the TreeItem TreeItem
TreeItem.edit() Begin in-place editing of the TreeItem text -
TreeItem.expand() Expand or collapse the subitems of the TreeItem -
TreeItem.show() Ensure that the TreeItem is visible -
TreeItem.sort() Sort all the subitems of the TreeItem in ascending order -
TreeItem.remove() Remove the TreeItem from the Tree -
TreeItem.clear() Remove all the subitems of the TreeItem -