# IPanel

> Interface for classes implementing UI panels.

## Definition

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

```csharp
public interface IPanel : IDisposable
```

## Properties

| Property                                                                                                        | Description                                                                                                     |
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [contextType](/engine/6000.5/script-reference/unityengine/uielements/ipanel/contexttype.md)                     | Describes in which context a VisualElement hierarchy is being run.                                              |
| [contextualMenuManager](/engine/6000.5/script-reference/unityengine/uielements/ipanel/contextualmenumanager.md) | The Contextual menu manager for the panel.                                                                      |
| [dispatcher](/engine/6000.5/script-reference/unityengine/uielements/ipanel/dispatcher.md)                       | This Panel EventDispatcher.                                                                                     |
| [focusController](/engine/6000.5/script-reference/unityengine/uielements/ipanel/focuscontroller.md)             | Return the focus controller for this panel.                                                                     |
| [isDirty](/engine/6000.5/script-reference/unityengine/uielements/ipanel/isdirty.md)                             | Checks whether any element within the panel has had any changes to its state since the panel was last rendered. |
| [scaledPixelsPerPoint](/engine/6000.5/script-reference/unityengine/uielements/ipanel/scaledpixelsperpoint.md)   | Gives the current scaled pixels per point value of the panel.                                                   |
| [visualTree](/engine/6000.5/script-reference/unityengine/uielements/ipanel/visualtree.md)                       | Root of the VisualElement hierarchy.                                                                            |

## Methods

| Method                                                                              | Description                                                      |
| ----------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [Pick](/engine/6000.5/script-reference/unityengine/uielements/ipanel/pick.md)       | Finds the top-most VisualElement overlapping the provided point. |
| [PickAll](/engine/6000.5/script-reference/unityengine/uielements/ipanel/pickall.md) | Finds all VisualElements overlapping the provided point.         |

## Inheritance

**Inherited Members:**

* [IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)
