# UxmlEnumeration

> Restricts the value of an attribute to be taken from a list of values.

## Definition

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

```csharp
public class UxmlEnumeration : UxmlTypeRestriction, IEquatable<UxmlTypeRestriction>
```

## Properties

| Property                                                                                   | Description                                |
| ------------------------------------------------------------------------------------------ | ------------------------------------------ |
| [values](/engine/6000.7/script-reference/unityengine/uielements/uxmlenumeration/values.md) | The list of values the attribute can take. |

## Methods

| Method                                                                                     | Description                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Equals](/engine/6000.7/script-reference/unityengine/uielements/uxmlenumeration/equals.md) | Indicates whether the current [UxmlEnumeration](/engine/6000.7/script-reference/unityengine/uielements/uxmlenumeration.md) object is equal to another object of the same type. |
