TreeItem object

The TreeItem widget represents an expandable item within a Tree

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