# Sandbox.Rendering.CommandList.DrawText

```csharp
void DrawText(Scope scope, Rect rect, TextFlag flags = 33, float angleDegrees = 0)
```

Draws text within a rectangle using a prepared [Sandbox.TextRendering.Scope](/api/Sandbox.TextRendering.Scope).

### Parameters

- `scope` (`Scope`): The text rendering scope.
- `rect` (`Rect`): The rectangle to draw the text in.
- `flags` (`TextFlag`), default `33`: Text alignment flags (optional).
- `angleDegrees` (`float`), default `0`: Rotation angle in degrees (optional).

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
