# Contains(StylePropertyName)

> Determines whether a StylePropertyNameCollection contains the specified element.

## Definition

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

```csharp
public bool Contains(StylePropertyName stylePropertyName)
```

### Parameters

**** (\[StylePropertyName]\(/engine/6000.5/script-reference/unityengine/uielements/stylepropertyname)): The element to locate in the [StylePropertyNameCollection](/engine/6000.5/script-reference/unityengine/uielements/stylepropertynamecollection.md).

### Returns

| Type                                                          | Description                                                                                                                                                                        |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if the [StylePropertyNameCollection](/engine/6000.5/script-reference/unityengine/uielements/stylepropertynamecollection.md) contains the specified element; otherwise, false. |
