# Sandbox.UI.StyleBlock.SetSelector

```csharp
bool SetSelector(string selector, StyleBlock parent = null)
```

### Parameters

- `selector` (`string`)
- `parent` (`StyleBlock`), default `null`

### Returns

`bool`

Declared in [Sandbox.UI.StyleBlock](/api/Sandbox.UI.StyleBlock).
Assembly: `Sandbox.Engine`.
