# Sandbox.Painter.Scope

```csharp
StateScope Scope()
```

Saves drawing state until the returned scope is disposed.

### Returns

`StateScope`

Declared in [Sandbox.Painter](/api/Sandbox.Painter).
Assembly: `Sandbox.Engine`.
