Skip to main content
Version: 4.2

RichTextBoxStreamType

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Specifies the format of the content loaded into or saved from a RichTextBox.

public enum RichTextBoxStreamType

Select one of the named values, such as RichText, Html, PlainText. The member descriptions define the behavior of each value.

Fields​

NameDescriptionValue
HtmlAn HTML fragment; unsupported elements, scripts and event attributes are removed.
MarkdownMarkdown (CommonMark with GitHub tables and strikethrough); HTML in the text is shown as text.
PlainTextPlain text without formatting; line breaks become paragraphs.
RichTextRich Text Format (RTF) content.

Used By​

NameDescription
RichTextBox.FormatGets or sets the format of Text and of the content passed to Append and Insert.
RichTextBox.AppendAppends content in the given format: plain text as AppendText, the other formats as AppendHtml.
RichTextBox.InsertReplaces the selection in the browser with content in the given format, like InsertText for plain text and InsertHtml for the other formats.
RichTextBox.LoadFileReplaces the content with a file.
RichTextBox.SaveFileWrites the content to a file.