Click or drag to resize

ITextBuffer Interface

Interface for a formatted text buffer

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public interface ITextBuffer

The ITextBuffer type exposes the following members.

Properties
  NameDescription
Public propertySupportedFormats
Gets an enumeration of formats supported for the Load(Stream, RichTextAreaFormat) and Save(Stream, RichTextAreaFormat) methods.
Top
Methods
  NameDescription
Public methodClear
Clears the buffer of all text and formatting.
Public methodDelete
Deletes text from the specified range
Public methodInsert
Inserts text with the format of the text at the specified position.
Public methodLoad
Loads the specified format from the stream, replacing the content of the buffer.
Public methodSave
Saves the buffer into a stream with the specified format.
Public methodSetBackground
Sets the background color for the specified range.
Public methodSetBold
Sets the bold flag for the specified text range.
Public methodSetFamily
Sets the font family for the specified text range.
Public methodSetFont
Sets the font for the specified text range.
Public methodSetForeground
Sets the foreground color for the specified text range.
Public methodSetItalic
Sets the italic flag for the specified text range.
Public methodSetStrikethrough
Sets the strikethrough for the specified text range.
Public methodSetUnderline
Sets the underline flag for the specified text range.
Top
Extension Methods
  NameDescription
Public Extension MethodGetRtf
Gets the content of the specified buffer as an RTF formatted string. Note that some platforms don't support RTF (e.g. Gtk).
(Defined by TextBufferExtensions.)
Public Extension MethodSetRtf
Sets the content of the buffer to the specified rtf string. Note that some platforms don't support RTF (e.g. Gtk).
(Defined by TextBufferExtensions.)
Top
See Also