# VisualElementStyleSheetSet

> This structure manipulates the set of StyleSheet objects attached to the owner VisualElement.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<VisualElementStyleSheetSet>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct VisualElementStyleSheetSet : IEquatable<VisualElementStyleSheetSet>
```

## Remarks

[VisualElementStyleSheetSet](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset.md) instances can't be created directly. Use the [\_styleSheets](/engine/6000.7/script-reference/unityengine/uielements/visualelement/stylesheets.md) property accessor to work with the style sheets of an element.

## Properties

| Property                                                                                              | Description                                                                                      |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [count](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/count.md)   | Number of style sheets attached to the owner element.                                            |
| [this\[\]](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/item.md) | Reads the value at the specified index in the list of StyleSheet objects attached of the element |

## Methods

| Method                                                                                                    | Description                                                                                                |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [Add](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/add.md)           | Adds a style sheet for the owner element.                                                                  |
| [Clear](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/clear.md)       | Removes all style sheets for the owner element.                                                            |
| [Contains](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/contains.md) | Looks for the specified [StyleSheet](/engine/6000.7/script-reference/unityengine/uielements/stylesheet.md) |
| [Equals](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/equals.md)     | Compares instances of the VisualElementStyleSheetSet struct for equality.                                  |
| [Insert](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/insert.md)     | Adds a style sheet for the owner element at a specified index                                              |
| [Remove](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/remove.md)     | Removes a style sheet for the owner element.                                                               |

## Operators

| Operator                                                                                                          | Description                                                                 |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/op-equality.md)   | Compares instances of the VisualElementStyleSheetSet struct for equality.   |
| [operator !=](/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset/op-inequality.md) | Compares instances of the VisualElementStyleSheetSet struct for inequality. |
