# GetEnumerator()

> Returns an enumerator that iterates through the StylePropertyNameCollection.

## Definition

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

```csharp
public StylePropertyNameCollection.Enumerator GetEnumerator()
```

### Returns

| Type                                                                                                           | Description                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Enumerator](/engine/6000.3/script-reference/unityengine/uielements/stylepropertynamecollection/enumerator.md) | An enumerator that can be used to iterate through the [StylePropertyNameCollection](/engine/6000.3/script-reference/unityengine/uielements/stylepropertynamecollection.md). |
