# Sandbox.UI.Label.SetStyleSpan

```csharp
void SetStyleSpan(int start, int end, Styles style)
```

Styles a range of displayed plain text. Start is inclusive and end is exclusive, in UTF-16 units
after whitespace normalization and text-transform. Supply spans in order without overlaps.
Supported properties match rich text: font, color, background, spacing and text decorations.
Reuse styles between spans; after changing a style, clear and resubmit the spans.
Spans are cleared when Text changes, and are not used for HTML or inline paragraphs.

### Parameters

- `start` (`int`)
- `end` (`int`)
- `style` (`Styles`)

Declared in [Sandbox.UI.Label](/api/Sandbox.UI.Label).
Assembly: `Sandbox.Engine`.
