# StylePropertyNameCollection

> Collection of StylePropertyName.

## Definition

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

```csharp
public struct StylePropertyNameCollection : IEnumerable<StylePropertyName>, IEnumerable
```

## Methods

| Method                                                                                                               | Description                                                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Contains](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/contains.md)           | Determines whether a [StylePropertyNameCollection](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection.md) contains the specified element. |
| [GetEnumerator](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/getenumerator.md) | Returns an enumerator that iterates through the [StylePropertyNameCollection](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection.md).     |

## Structs

| Struct                                                                                                                                     | Description                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [StylePropertyNameCollection.Enumerator](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection/enumerator.md) | Enumerates the elements of a [StylePropertyNameCollection](/engine/6000.7/script-reference/unityengine/uielements/stylepropertynamecollection.md). |
