# AddToClassList

> Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.

## Definition

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

## AddToClassList(string)

Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.

```csharp
public void AddToClassList(string className)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the class to add to the list.

## AddToClassList(string\[])

Adds multiple classes to the class list of the element in order to assign styles from USS. Note the class names are case-sensitive.

```csharp
public void AddToClassList(params string[] classNames)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The names of the classes to add to the list.
