# treeViewControlID

> The controlID used by the TreeView to obtain keyboard control focus.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.7/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public int treeViewControlID { get; set; }
```

### Remarks

Can be used for setting keyboard focus to the TreeView from script: [GUIUtility.keyboardControl](/engine/6000.7/script-reference/unityengine/guiutility/keyboardcontrol.md) = treeViewControlID;
