# Sandbox.Graphics.DrawIcon

```csharp
static Rect DrawIcon(Rect rect, string iconName, Color color, float fontSize = 20, TextFlag alignment = 132)
```

Calls DrawText with "Material Icons" font. You can get a list of icons here https://fonts.google.com/icons?selected=Material+Icons

### Parameters

- `rect` (`Rect`)
- `iconName` (`string`)
- `color` (`Color`)
- `fontSize` (`float`), default `20`
- `alignment` (`TextFlag`), default `132`

### Returns

`Rect`

Declared in [Sandbox.Graphics](/api/Sandbox.Graphics).
Assembly: `Sandbox.Engine`.
