# AddExpandedRows(TreeViewItem<TIdentifier>, IList<TreeViewItem<TIdentifier>>)

> Adds the expanded rows of the full tree to the input list. Only use this method if a full tree was built in BuildRoot.

## Definition

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

## AddExpandedRows(TreeViewItem\<T>, IList\<TreeViewItem\<T>>)

```csharp
protected void AddExpandedRows(TreeViewItem<TIdentifier> root, IList<TreeViewItem<TIdentifier>> rows)
```

### Parameters

**** (\[TreeViewItem\<T>]\(/engine/6000.5/script-reference/unityeditor/imgui/controls/treeviewitem)): Root of the TreeView.**** (\[IList\<TreeViewItem\<T>>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): Rows that will be refilled using the expanded state of TreeView.

### Remarks

Note that the rows list will not be cleared before adding items.

Additional Resources: [TreeView\<TIdentifier>.BuildRoot()](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/buildroot.md), [TreeView\<TIdentifier>.BuildRows](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/buildrows.md).
