# Sandbox.TextStyle.WithColor

```csharp
TextStyle WithColor(Color color)
```

Returns a copy with a text color. Alpha applies to the text and its effects together.

### Parameters

- `color` (`Color`)

### Returns

`TextStyle`

Declared in [Sandbox.TextStyle](/api/Sandbox.TextStyle).
Assembly: `Sandbox.Engine`.
