# ITextBuffer interface

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

```cs
public interface ITextBuffer
```

Interface for a formatted text buffer

## Properties

- [SupportedFormats](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/supportedformats.md): Gets an enumeration of formats supported for the [ITextBuffer.Load(Stream, RichTextAreaFormat)](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/load.md) and [ITextBuffer.Save(Stream, RichTextAreaFormat)](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/save.md) methods.

## Methods

- [Clear](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/clear.md): Clears the buffer of all text and formatting.
- [Delete](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/delete.md): Deletes text from the specified range
- [Insert](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/insert.md): Inserts text with the format of the text at the specified position.
- [Load](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/load.md): Loads the specified format from the stream, replacing the content of the buffer.
- [Save](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/save.md): Saves the buffer into a stream with the specified format.
- [SetBackground](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setbackground.md): Sets the background color for the specified range.
- [SetBold](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setbold.md): Sets the bold flag for the specified text range.
- [SetFamily](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setfamily.md): Sets the font family for the specified text range.
- [SetFont](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setfont.md): Sets the font for the specified text range.
- [SetForeground](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setforeground.md): Sets the foreground color for the specified text range.
- [SetItalic](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setitalic.md): Sets the italic flag for the specified text range.
- [SetStrikethrough](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setstrikethrough.md): Sets the strikethrough for the specified text range.
- [SetUnderline](https://eto.picoe.ca/api/type/eto.forms.itextbuffer/setunderline.md): Sets the underline flag for the specified text range.
