# TreeView

Inherits Control

This control implements a tree view of selectable text items with icons.

Tree view items are indexed by a key. They display a string and an icon for each item.

This control has an internal cursor used for accessing its items. Use the `Move*()` methods to move the internal cursor, and the Item property to get the item it points at.

This class is creatable.

`DIM hTreeView AS TreeView hTreeView = NEW TreeView ( Parent AS Container )`

Creates a new TreeView control.

This class acts like a read-only array.

`DIM hTreeView AS TreeView DIM hTreeViewItem AS .TreeViewItem hTreeViewItem = hTreeView [ Key AS String ]`

Returns a TreeView item from its key. The internal cursor is moved.

Properties |  | Methods |  | Events |  | Constants |
--- | --- | --- | --- | --- | --- | --- | ---
Available BackColor Background Border ClientH ClientHeight ClientW ClientWidth Count Current Cursor Design Drop Editable Enabled Expand Font ForeColor Foreground H Handle Height Id Item Key Left Mode Mouse Next Parent Previous Root ScreenX ScreenY ScrollBar Sorted Tag ToolTip Top Visible W Width Window X Y |  | Add Clear Delete Drag Exist Find Grab Hide Lower Move MoveAbove MoveBack MoveBelow MoveChild MoveCurrent MoveFirst MoveLast MoveNext MoveParent MovePrevious MoveTo Raise Refresh Remove Resize SetFocus Show |  | Activate Click Collapse DblClick Drag DragMove Drop Enter Expand GotFocus KeyPress KeyRelease Leave LostFocus Menu MouseDown MouseMove MouseUp MouseWheel Rename Select |  | Extended Multi None Single |