# TextElement

**Inheritance:** [StyledElement](https://api.fabulous.dev/3.0-preview-1/avalonia/styledelement)

## Properties

| Properties                                         | Description                    |
| -------------------------------------------------- | ------------------------------ |
| background(value: WidgetBuilder<'msg, #IFabBrush>) | Sets the Background property.  |
| background(value: IBrush)                          | Sets the Background property.  |
| background(value: string)                          | Sets the Background property.  |
| fontFamily(value: FontFamily)                      | Sets the FontFamily property.  |
| fontSize(value: float)                             | Sets the FontSize property.    |
| fontStyle(value: FontStyle)                        | Sets the FontStyle property.   |
| fontWeight(value: FontWeight)                      | Sets the FontWeight property.  |
| fontStretch(value: FontStretch)                    | Sets the FontStretch property. |
| foreground(value: WidgetBuilder<'msg, #IFabBrush>) | Sets the Foreground property.  |
| foreground(value: IBrush)                          | Sets the Foreground property.  |
| foreground(value: string)                          | Sets the Foreground property.  |
