# Translate

> Represents a translation of the object. Percentage values in X and Y are relative to the width and height of the visual element where the style value is applied.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<Translate>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct Translate : IEquatable<Translate>
```

## Constructors

| Constructor                                                                                                                                        | Description                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [Translate(UnityEngine.UIElements.Length,UnityEngine.UIElements.Length)](/engine/6000.0/script-reference/unityengine/uielements/translate/ctor.md) | Create a Translate data with two Lengths for the x and y axis. |

## Static Methods

| Method                                                                           | Description                                                          |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [None](/engine/6000.0/script-reference/unityengine/uielements/translate/none.md) | Returns the value of a Translate object with no translation applied. |
