# StyleList<T>

> Style value that can be either a list or a StyleKeyword.

## Definition

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

```csharp
public struct StyleList<T> : IStyleValue<List<T>>, IEquatable<StyleList<T>>
```

## Constructors

| Constructor                                                                                                                                              | Description                                                                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [StyleList\`1(System.Collections.Generic.List\{\`0})](/engine/6000.3/script-reference/unityengine/uielements/stylelist1/ctor.md#stylelist\(listt\))      | Creates from either a list or a [StyleKeyword](/engine/6000.3/script-reference/unityengine/uielements/stylekeyword.md). |
| [StyleList\`1(UnityEngine.UIElements.StyleKeyword)](/engine/6000.3/script-reference/unityengine/uielements/stylelist1/ctor.md#stylelist\(stylekeyword\)) | Creates from either a list or a [StyleKeyword](/engine/6000.3/script-reference/unityengine/uielements/stylekeyword.md). |

## Properties

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