# StyleEnum<T>

> Style value that can be either an enum or a StyleKeyword.

## Definition

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

```csharp
public struct StyleEnum<T> : IStyleValue<T>, IEquatable<StyleEnum<T>> where T : struct, IConvertible
```

## Constructors

| Constructor                                                                                                                                              | Description                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| [StyleEnum\`1(\`0)](/engine/6000.0/script-reference/unityengine/uielements/styleenum1/ctor.md#styleenum\(t\))                                            | Creates from either an enum or a [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |
| [StyleEnum\`1(UnityEngine.UIElements.StyleKeyword)](/engine/6000.0/script-reference/unityengine/uielements/styleenum1/ctor.md#styleenum\(stylekeyword\)) | Creates from either an enum or a [StyleKeyword](/engine/6000.0/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

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