# BackgroundPosition

> Script interface for VisualElement background-position style property _backgroundPositionX and _backgroundPositionY.

## Definition

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

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

## Fields

| Value                                                                                           | Description              |
| ----------------------------------------------------------------------------------------------- | ------------------------ |
| [keyword](/engine/6000.7/script-reference/unityengine/uielements/backgroundposition/keyword.md) | Background position type |
| [offset](/engine/6000.7/script-reference/unityengine/uielements/backgroundposition/offset.md)   | Background offset        |

## Constructors

| Constructor                                                                                                                                                                                                                                    | Description                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [BackgroundPosition(UnityEngine.UIElements.BackgroundPositionKeyword)](/engine/6000.7/script-reference/unityengine/uielements/backgroundposition/ctor.md#backgroundposition\(backgroundpositionkeyword\))                                      | Initialize from single position type          |
| [BackgroundPosition(UnityEngine.UIElements.BackgroundPositionKeyword,UnityEngine.UIElements.Length)](/engine/6000.7/script-reference/unityengine/uielements/backgroundposition/ctor.md#backgroundposition\(backgroundpositionkeyword-length\)) | Initialize from x position type with x offset |
