Click or drag to resize

TextBufferExtensionsSetRtf Method

Sets the content of the buffer to the specified rtf string. Note that some platforms don't support RTF (e.g. Gtk).

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static void SetRtf(
	this ITextBuffer buffer,
	string rtf
)

Parameters

buffer
Type: Eto.FormsITextBuffer
Buffer to set the content for
rtf
Type: SystemString
RTF formatted string to set the buffer

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITextBuffer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The CaretIndex and Selection will be set to the end of the string after set.
See Also