# FormattedText class

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(FormattedText.IHandler)]
public class FormattedText : Widget
```

Low level object that provides drawing text with formatting.

## Properties

- [Alignment](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/alignment.md): Gets or sets how the text should be aligned to [FormattedText.MaximumSize](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/maximumsize.md)
- [Font](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/font.md): Gets or sets the font to use to draw the text.
- [ForegroundBrush](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/foregroundbrush.md): Gets or sets the brush to use to draw the text.
- [MaximumHeight](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/maximumheight.md): Gets or sets the maximum height of the text.
- [MaximumSize](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/maximumsize.md): Gets or sets the maximum size of the text.
- [MaximumWidth](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/maximumwidth.md): Gets or sets the maximum width of the text.
- [Text](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/text.md): Gets or sets the text to display
- [Trimming](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/trimming.md): Gets or sets the trimming mode.
- [Wrap](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/wrap.md): Gets or sets the wrapping mode.

## Methods

- [Measure](https://eto.picoe.ca/api/type/eto.drawing.formattedtext/measure.md): Gets the size needed to draw the text.

## Inherited Members

- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
