Table of Contents

Enum TextEditorFormat

Namespace
TwBlazor.Enums
Assembly
TwBlazor.dll

Defines a format a TwTextEditor can apply to its text.

public enum TextEditorFormat

Fields

Blockquote = 8

A quote (<blockquote>). Applying it to a quote turns it back into a paragraph.

Bold = 0

Bold text (<strong>).

BulletList = 10

A bulleted list (<ul>). Applying it to a bulleted list turns the items back into paragraphs.

CodeBlock = 9

A block of code (<pre>). Applying it to a code block turns it back into a paragraph.

Heading1 = 5

A top level heading (<h1>).

Heading2 = 6

A second level heading (<h2>).

Heading3 = 7

A third level heading (<h3>).

Italic = 1

Italic text (<em>).

A link (<a>). Reported while the caret is in a link; use InsertLinkAsync(string) to add one.

NumberedList = 11

A numbered list (<ol>). Applying it to a numbered list turns the items back into paragraphs.

Paragraph = 4

A plain paragraph (<p>).

Strikethrough = 3

Struck-through text (<s>).

Underline = 2

Underlined 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.