The TreeViewItem represents items on a tree view control.
Returns the number of children of the treeview item.
Gets the number of children of the treeview item. If all_children is true, then the function counts all child items recursively and returns the total number of children. If all_children is false, then the function only counts the immediate children of the item and returns this number. If all_children isn't specified, the function returns the count of all children.
Returns the first child of a treeview item.
Gets the first child of the treeview item and returns it. If the function can't find a first child, the function returns an empty treeview item.
The text of the treeview item.
Returns the text of the treeview item.
Returns the last child of a treeview item.
Gets the last child of the treeview item and returns it. If the function can't find a last child, the function returns an empty treeview item.
Returns the next child of a treeview item after the last item that was returned from this function of from getFirstChild().
Gets the next child of this item. The next child is the child after the last child that was returned from this function or from getFirstChild(). If the function can't find the next item, it returns an empty treeview item.
Returns the treeview item right after this item.
Gets the treeview item right after this item, which is the treeview item that has the same parent as the current item and is right after this item in the tree. If the function can't find the next child item, it returns an empty treeview item.
Returns the treeview item parent.
Gets the parent of a treeview item and returns it. If the treeview item doesn't have a parent, the function returns an empty treeview item.
Returns the treeview item right before this item.
Gets the treeview item right before this item, which is the treeview item that has the same parent as the current item and is right before this item in the tree. If the function can't find the previous child item, it returns an empty treeview item.
Returns true if the item has children, and false otherwise.
Indicates whether a treeview item has children or not. If the treeview item has children, the function returns true; otherwise, it returns false. If the treeview item is not part of the treeview, the function also returns false.
Returns true if the item is expanded, and false if it is collapsed.
Indicates whether a treeview item is expanded so that it's children are visible, if present, or whether the treeview item is collapsed so that children are hidden. If the treeview item is expanded, the function returns true. If the treeview item is collapsed, the function returns false. If the treeview item is not part of the treeview, the function also returns false.
Returns true if the item is selected, and false otherwise.
Indicates whether a treeview item is selected or not. If the treeview item is selected, the function returns true. If the treeview item is not selected, the function returns false. If the treeview item is not part of the treeview, the function also returns false.
Returns true if the item is visible, and false otherwise.
Indicates whether a treeview item is visible or not. For example, a treeview item may not be visible if it's outside the window or it's the child of a collapsed parent. If the treeview item is visible, the function returns true. If the treeview item is not visible, the function returns false. If the item is not part of the treeview, the function also returns false.
Sets the treeview item's bitmap, specified by bitmap, that will be shown for the treeview item.
Sets the treeview item text, specified by label.