RichTextBoxCommand
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Specifies an editing command applied to the current selection of a RichTextBox.
- C#
- VB.NET
public enum RichTextBoxCommand
Public Enum RichTextBoxCommand
Pass the value to ExecuteCommand. The commands that take an argument are ForeColor and BackColor (a CSS color), CreateLink (an address), InsertHtml (an HTML fragment), InsertText (plain text), FormatBlock (p, h1, h2, h3, blockquote or pre), FontName (a font family), FontSize (a size in points) and InsertTable (rows and columns, as "3x4", up to 100 rows and 30 columns). An unsafe address, a font name with quotes or semicolons and a size that is not a number are ignored.
Fields
| Name | Description | Value |
|---|---|---|
| AlignCenter | Centers the paragraph. | |
| AlignLeft | Aligns the paragraph to the left. | |
| AlignRight | Aligns the paragraph to the right. | |
| BackColor | Sets the highlight color; the argument is a CSS color. | |
| Bold | Toggles bold. | |
| BulletedList | Toggles a bulleted list. | |
| CreateLink | Turns the selection into a hyperlink; the argument is the address. | |
| FontName | Sets the font of the selection; the argument is a font family, such as Arial. | |
| FontSize | Sets the font size of the selection; the argument is the size in points, such as 14 or 10.5. | |
| ForeColor | Sets the text color; the argument is a CSS color. | |
| FormatBlock | Changes the block format; the argument is p, h1, h2, h3, blockquote or pre. | |
| Indent | Increases the indent. | |
| InsertHtml | Replaces the selection with an HTML fragment; the fragment is sanitized first. | |
| InsertTable | Inserts an empty table at the caret; the argument is the number of rows and columns, as "3x4". | |
| InsertText | Replaces the selection with plain text. | |
| Italic | Toggles italic. | |
| Justify | Justifies the paragraph. | |
| NumberedList | Toggles a numbered list. | |
| Outdent | Decreases the indent. | |
| Redo | Redoes the last undone edit. | |
| RemoveFormat | Removes character formatting from the selection. | |
| SelectAll | Selects the whole content. | |
| Strikethrough | Toggles strikethrough. | |
| Subscript | Toggles subscript. | |
| Superscript | Toggles superscript. | |
| Underline | Toggles underline. | |
| Undo | Undoes the last edit. | |
| Unlink | Removes the hyperlink from the selection. |
Used By
| Name | Description |
|---|---|
| RichTextBox.ExecuteCommand | Applies an editing command to the current selection in the browser, as the toolbar does. |