# searchString

> Current search string of the TreeView.

## Definition

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

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

### Remarks

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