Skip to main content

Formatting Characters

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. Hidden text is supported.

Character properties are exposed via the CharacterProperties interface.

To change default character formatting for the current document, use the Document.DefaultCharacterProperties property.

To modify the formatting of the characters in the range, use the SubDocument.BeginUpdate - SubDocument.EndUpdateCharacters method pair.

The following table lists commands used to format text and default keyboard shortcuts for those commands.

NOTE

Keyboard shortcuts are operational unless they are intercepted by a browser.

Key Combination Description
CTRL+B ToggleFontBoldCommand
CTRL+I ToggleFontItalicCommand
CTRL+U ToggleFontUnderlineCommand
CTRL+SHIFT+D ToggleFontDoubleUnderlineCommand
ToggleFontStrikeoutCommand
ToggleFontDoubleStrikeoutCommand
ToggleFontSubscriptCommand
ToggleFontSuperscriptCommand
CTRL+SHIFT+H ToggleHiddenTextCommand
DecreaseFontSizeCommand
IncreaseFontSizeCommand
IncrementFontSizeCommand
DecrementFontSizeCommand
CTRL+D ShowFontFormCommand
CTRL+SPACE ClearFormattingCommand
ToggleTextCaseCommand
MakeTextLowerCaseCommand
MakeTextUpperCaseCommand
ChangeFontColorCommand
ChangeFontBackColorCommand
ChangeFontNameCommand
ChangeFontSizeCommand