# Sandbox.UI.Panel.HasClass

```csharp
bool HasClass(string classname)
```

Whether we have the given CSS class or not.

### Parameters

- `classname` (`string`)

### Returns

`bool`

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
