# Contains(StyleSheet)

> Looks for the specified StyleSheet

## Definition

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

```csharp
public bool Contains(StyleSheet styleSheet)
```

### Parameters

**** (\[StyleSheet]\(/engine/6000.0/script-reference/unityengine/uielements/stylesheet)):&#x20;

### Returns

| Type                                                          | Description                                                                        |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the style sheet is attached to the owner element, false otherwise. |
