# Sandbox.UI.Panel.SetClass

```csharp
void SetClass(string classname, bool active)
```

Sets a specific CSS class active or not.

### Parameters

- `classname` (`string`)
- `active` (`bool`)

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
