# Sandbox.UI.Panel.SetProperty

```csharp
void SetProperty(string name, string value)
```

Set a property on the panel, such as special properties (`class`, `id`, `style` and `value`, etc.) and properties of the panel's C# class.

### Parameters

- `name` (`string`): name of the property to modify.
- `value` (`string`): Value to assign to the property.

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
