# FindPanelRenderer(VisualElement)

> Finds the PanelRenderer whose UI hierarchy contains the given element.

## Definition

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

```csharp
public static PanelRenderer FindPanelRenderer(VisualElement ve)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.6/script-reference/unityengine/uielements/visualelement)): The element to search from.

### Returns

| Type                                                                                     | Description                                                                                      |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [PanelRenderer](/engine/6000.6/script-reference/unityengine/uielements/panelrenderer.md) | The PanelRenderer containing the element, or null if the element is not part of a PanelRenderer. |

### Remarks

If the element is inside a nested PanelRenderer, the closest one is returned.
