# VisualElementExtensions

> VisualElementExtensions is a set of extension methods useful for VisualElement.

## Definition

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

```csharp
public static class VisualElementExtensions
```

## Static Methods

| Method                                                                                                                             | Description                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [AddManipulator](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/addmanipulator.md)                 | Add a manipulator associated to a VisualElement.                                                       |
| [ChangeCoordinatesTo](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/changecoordinatesto.md)       | Transforms a rectangle from the local space of an element to the local space of another element.       |
| [FindRootPanelComponent](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/findrootpanelcomponent.md) | Finds the root IPanelComponent for the given VisualElement.                                            |
| [LocalToWorld](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/localtoworld.md)                     | Transforms a rectangle from the local space of the element to panel coordinates.                       |
| [RemoveManipulator](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/removemanipulator.md)           | Remove a manipulator associated to a VisualElement.                                                    |
| [StretchToParentSize](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/stretchtoparentsize.md)       | Aligns a VisualElement's left, top, right and bottom edges with the corresponding edges of its parent. |
| [StretchToParentWidth](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/stretchtoparentwidth.md)     | Aligns a VisualElement's left and right edges with the corresponding edges of its parent.              |
| [WorldToLocal](/engine/6000.7/script-reference/unityengine/uielements/visualelementextensions/worldtolocal.md)                     | Transforms a rectangle from panel coordinates into the local space of the element.                     |
