# GetRootElementForId(int)

> Gets the root element of the specified collection view item.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public VisualElement GetRootElementForId(int id)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The item identifier.

### Returns

| Type                                                                                     | Description              |
| ---------------------------------------------------------------------------------------- | ------------------------ |
| [VisualElement](/engine/6000.3/script-reference/unityengine/uielements/visualelement.md) | The item's root element. |

### Remarks

This method provides an entry point to re-style elements added by Unity over the user-driven content. Ex. the drag handle in a ListView, or the Toggle in a TreeView.
