# searchString

> Current search string of the TreeView.

## Definition

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

```csharp
public string searchString { get; set; }
```

### Remarks

If this search string is set then remember to use it to filter items when [TreeView.BuildRows](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeview/buildrows.md) is called. Note that this search string is stored in the TreeViewState object ([TreeView.state](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeview/state.md)).
