# Sandbox.TextStyle.WithShadow

## Overload 1

```csharp
TextStyle WithShadow(System.Nullable<Color> color = null, float blur = 4, System.Nullable<Vector2> offset = null)
```

### Parameters

- `color` (`System.Nullable<Color>`), default `null`
- `blur` (`float`), default `4`
- `offset` (`System.Nullable<Vector2>`), default `null`

### Returns

`TextStyle`

## Overload 2

```csharp
TextStyle WithShadow(Color color, float offsetX, float offsetY, float blur = 4)
```

Returns a copy with a drop shadow using separate X/Y offsets and optional blur, in pixels before ScaleToScreen.

### Parameters

- `color` (`Color`)
- `offsetX` (`float`)
- `offsetY` (`float`)
- `blur` (`float`), default `4`

### Returns

`TextStyle`

Declared in [Sandbox.TextStyle](/api/Sandbox.TextStyle).
Assembly: `Sandbox.Engine`.
