# Sandbox.UI.Panel.SetAttribute

```csharp
void SetAttribute(string k, string v)
```

Stores an attribute value by name. Every attribute set via [Sandbox.UI.Panel.SetProperty](/api/Sandbox.UI.Panel/SetProperty) lands here.

### Parameters

- `k` (`string`)
- `v` (`string`)

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
