# GetClasses()

> Retrieve the classes for this element.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public IEnumerable<string> GetClasses()
```

### Returns

| Type                                                                                                    | Description   |
| ------------------------------------------------------------------------------------------------------- | ------------- |
| [IEnumerable\<string>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | A class list. |

### Remarks

The order of the classes will always be the same between two elements that have the same classes. However, the ordering of the classes for a given element is not guaranteed to match between executions or after a domain reload.
