Enum TextEditorFormat
Defines a format a TwTextEditor can apply to its text.
public enum TextEditorFormat
Fields
Blockquote = 8A quote (
<blockquote>). Applying it to a quote turns it back into a paragraph.Bold = 0Bold text (
<strong>).BulletList = 10A bulleted list (
<ul>). Applying it to a bulleted list turns the items back into paragraphs.CodeBlock = 9A block of code (
<pre>). Applying it to a code block turns it back into a paragraph.Heading1 = 5A top level heading (
<h1>).Heading2 = 6A second level heading (
<h2>).Heading3 = 7A third level heading (
<h3>).Italic = 1Italic text (
<em>).Link = 12A link (
<a>). Reported while the caret is in a link; use InsertLinkAsync(string) to add one.NumberedList = 11A numbered list (
<ol>). Applying it to a numbered list turns the items back into paragraphs.Paragraph = 4A plain paragraph (
<p>).Strikethrough = 3Struck-through text (
<s>).Underline = 2Underlined text (
<u>).
Remarks
Bold, Italic, Underline and Strikethrough apply to the selected text. The others apply to the whole paragraphs the selection touches, and a paragraph has one of Paragraph, Heading1, Heading2, Heading3, Blockquote and CodeBlock at a time.