# StyleBackgroundPosition

> Represents a style value that can be either a BackgroundPosition or a StyleKeyword.

## Definition

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

```csharp
public struct StyleBackgroundPosition : IStyleValue<BackgroundPosition>, IEquatable<StyleBackgroundPosition>
```

## Constructors

| Constructor                                                                                                                                                                                                | Description                                                                                                                                                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [StyleBackgroundPosition(UnityEngine.UIElements.BackgroundPosition)](/engine/6000.0/script-reference/unityengine/uielements/stylebackgroundposition/ctor.md#stylebackgroundposition\(backgroundposition\)) | Creates a new StyleBackgroundPosition from either a [BackgroundPosition](/engine/6000.0/script-reference/unityengine/uielements/backgroundposition.md) or a [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md).  |
| [StyleBackgroundPosition(UnityEngine.UIElements.StyleKeyword)](/engine/6000.0/script-reference/unityengine/uielements/stylebackgroundposition/ctor.md#stylebackgroundposition\(stylekeyword\))             | Creates  a new StyleBackgroundPosition from either a [BackgroundPosition](/engine/6000.0/script-reference/unityengine/uielements/backgroundposition.md) or a [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

| Property                                                                                             | Description                                                                                                   |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| [keyword](/engine/6000.0/script-reference/unityengine/uielements/stylebackgroundposition/keyword.md) | The style keyword.                                                                                            |
| [value](/engine/6000.0/script-reference/unityengine/uielements/stylebackgroundposition/value.md)     | The [BackgroundPosition](/engine/6000.0/script-reference/unityengine/uielements/backgroundposition.md) value. |
