# GetFirstAndLastVisibleRows(out int, out int)

> Returns the first and the last indices of the rows that are visible in the scroll view of the TreeView.

## Definition

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

## GetFirstAndLastVisibleRows(int, int)

```csharp
protected void GetFirstAndLastVisibleRows(out int firstRowVisible, out int lastRowVisible)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): First row visible.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Last row visible.

### Remarks

Additional Resources: [TreeView\<TIdentifier>.GetRows()](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/getrows.md).
