# StylePropertyNameCollection.Enumerator

> Enumerates the elements of a StylePropertyNameCollection.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEnumerator\<StylePropertyName>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1), [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct StylePropertyNameCollection.Enumerator : IEnumerator<StylePropertyName>, IEnumerator, IDisposable
```

## Properties

| Property                                                                                                            | Description                                                 |
| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [Current](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/enumerator/current.md) | Gets the element at the current position of the enumerator. |

## Methods

| Method                                                                                                                | Description                                                                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Dispose](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/enumerator/dispose.md)   | Releases all resources used by the [StylePropertyNameCollection](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection.md) enumerator.      |
| [MoveNext](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/enumerator/movenext.md) | Advances the enumerator to the next element of the [StylePropertyNameCollection](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection.md). |
