Back to Devexpress

Formatting Characters

aspnet-115146-aspnet-webforms-controls-rich-text-editor-concepts-editing-features-formatting-characters.md

latest2.3 KB
Original Source

Formatting Characters

  • Jan 10, 2020

Characters can be formatted using different settings for font, font size, character style - bold, italics, underlined, strike-through style, and different colors for background and foreground. You can specify the characters’ formatting using the Ribbon UI, Font Dialog or RichEditCommands.changeFontFormatting client command in code.

The following table lists default keyboard shortcuts for some commands used to format text. You can duplicate these commands in code using the corresponding client command.

Key CombinationDescriptionClient Command
CTRL+BToggles the bold style on the selection.RichEditCommands.changeFontBold
CTRL+IToggles the italic style on the selection.RichEditCommands.changeFontItalic
CTRL+UToggles the underline style on the selection.RichEditCommands.changeFontUnderline
CTRL+OEMPLUSToggles the subscript style on the selection.RichEditCommands.changeFontSubscript
CTRL+SHIFT+OEMPLUSToggles the superscript style on the selection.RichEditCommands.changeFontSuperscript
CTRL+DInvokes the Font dialog that allows you to change the font, size and style of selected text.RichEditCommands.openFontFormattingDialog
CTRL+SPACEResets the formatting of the selected text to default.RichEditCommands.clearFormatting