# GUI Control - Tree View (scripting commands)

- [tvAdd](../../commands/tvAdd.md): Adds an item with given text to Tree View control. The position on Tree View where to add the item and the actual path to this item once added are different.
- [tvClear](../../commands/tvClear.md): Removes all items from Tree View with given idc.
- [tvCollapse](../../commands/tvCollapse.md): Collapses tree item pointed to by the path. IDC means id of parent Tree View.
- [tvCollapseAll](../../commands/tvCollapseAll.md): Collapses all tree items for the given Tree View.
- [tvCount](../../commands/tvCount.md): Returns children count on given path. IDC means id of parent Tree View.
- [tvCurSel](../../commands/tvCurSel.md): Returns path to currently selected item. IDC means id of parent Tree View.
- [tvData](../../commands/tvData.md): Returns string data from item on given path. IDC means id of parent CT_TREE.
- [tvDelete](../../commands/tvDelete.md): Removes an item with given Tree View Path from Tree View.
- [tvExpand](../../commands/tvExpand.md): Expands tree item pointed to by the path. IDC means id of parent Tree View.
- [tvExpandAll](../../commands/tvExpandAll.md): Expands all tree items for the given Tree View.
- [tvIsSelected](../../commands/tvIsSelected.md): Returns true if given treeview item is selected.
- [tvPicture](../../commands/tvPicture.md): Returns name of picture from item pointed to by path. IDC means id of parent Tree View.
- [tvPictureRight](../../commands/tvPictureRight.md): Returns the right picture of a CT_TREE on given path.
- [tvSelection](../../commands/tvSelection.md): Returns array of paths to selected items.
- [tvSetColor](../../commands/tvSetColor.md): Sets text color on given Tree View Item
- [tvSetCurSel](../../commands/tvSetCurSel.md): Sets cursor to given item on given path. IDC means id of parent Tree View. To deselect all items use [-1] for the path param (*available since Arma 3 v1.56*)
- [tvSetData](../../commands/tvSetData.md): Sets string data to item on given path. IDC means id of parent Tree View.
- [tvSetPicture](../../commands/tvSetPicture.md): Sets picture to item selected by path. IDC means id of parent Tree View. Name is picture name. The picture is searched in the mission directory.
- [tvSetPictureColor](../../commands/tvSetPictureColor.md): Sets the colour of the picture (set via tvSetPicture) under the specified tree view path.
- [tvSetPictureColorDisabled](../../commands/tvSetPictureColorDisabled.md): Sets the color of left picture of a tree item defined by path when that item is disabled.
- [tvSetPictureColorSelected](../../commands/tvSetPictureColorSelected.md): Sets the color of the left picture of a tree item defined by path when item is selected
- [tvSetPictureRight](../../commands/tvSetPictureRight.md): Sets right picture on the tree view item defined by path.
- [tvSetPictureRightColor](../../commands/tvSetPictureRightColor.md): Sets color of the right picture on the tree view item defined by path
- [tvSetPictureRightColorDisabled](../../commands/tvSetPictureRightColorDisabled.md): Sets the color of the right picture of a tree item defined by path when item is disabled
- [tvSetPictureRightColorSelected](../../commands/tvSetPictureRightColorSelected.md): Sets the color of the right picture of a tree item defined by path when item is selected
- [tvSetSelectColor](../../commands/tvSetSelectColor.md): Sets the select color of given path.
- [tvSetSelected](../../commands/tvSetSelected.md): Sets the selection state of given treeview item in multi-select control.
- [tvSetText](../../commands/tvSetText.md): Sets string text to item on given path. IDC means id of parent Tree View.
- [tvSetTooltip](../../commands/tvSetTooltip.md): Sets the tooltip text associated with the specified tree view path.
- [tvSetValue](../../commands/tvSetValue.md): Sets scalar data to item on given path. IDC means id of parent Tree View. If the given value is not integer, it will be converted to integer
- [tvSort](../../commands/tvSort.md): Sorts all children of given path. Text of Tree View entries is used for sorting.
- [tvSortAll](../../commands/tvSortAll.md): Sorts all children, including trees deriving from given path. Text of Tree View entries is used for sorting.
- [tvSortByValue](../../commands/tvSortByValue.md): Sorts all children of given path. Value of Tree View entries is used for sorting. tvSetValue can be used to set the value for a given path.
- [tvSortByValueAll](../../commands/tvSortByValueAll.md): Sorts all children, including trees deriving from given path. Value of Tree View entries is used for sorting.
- [tvText](../../commands/tvText.md): Returns shown text in the item on given path. IDC means id of parent Tree View.
- [tvTooltip](../../commands/tvTooltip.md): Gets the tooltip text associated with the specified tree view path.
- [tvValue](../../commands/tvValue.md): Returns numeric value set for given tree view path.
