New to Telerik UI for WinFormsStart a free 30-day trial

Commands

Updated over 6 months ago

The RadRichTextEditor control exposes a full set of commands that are exposed through its Commands property. For each of the Formatting API methods there is a respective command.

The following list shows all available RadRichTextEditor commands.

Commands

PropertyDescription
TabBackwardCommandTab Backward Command.
TabForwardCommandTab Forward Command.
NewDocumentCommandNew Document Command.
OpenDocumentCommandOpen Document Command.
PrintCommandPrint Command.
PrintPreviewCommandPrint Preview Command.
SaveCommandSave Command.
MultipleUndoCommandMultiple Undo Command.
UndoCommandUndo Command.
RedoCommandRedo Command.
ChangeFontFamilyCommandChange Font Family Command.
ChangeFontSizeCommandChange Font Size Command.
ChangeFontForeColorCommandChange Font Fore Color Command.
ChangeFontHighlightColorCommandChange Font Highlight Color Command.
ToggleBoldCommandToggle Bold Command.
ToggleItalicCommandToggle Italic Command.
ToggleStrikethroughCommandToggle Strikethrough Command.
ToggleSubscriptCommandToggle Subscript Command.
ToggleSuperscriptCommandToggle Superscript Command.
ToggleUnderlineCommandToggle Underline Command.
ToggleFormattingSymbolsCommandToggle Formatting Symbols Command.
ChangeFormatPainterStateCommandChange Format Painter State Command.
IncrementFontSizeCommandIncrement Font Size Command.
DecrementFontSizeCommandDecrement Font Size Command.
ToggleBulletsCommandToggle Bullets Command.
ToggleNumberedCommandToggle Numbered Command.
ChangeListStyleCommandChange List Style Command.
ChangeTextAlignmentCommandChange Text Alignment Command.
ChangeParagraphFlowDirectionCommandChange Paragraph Flow Direction Command.
IncrementParagraphLeftIndentCommandIncrement Paragraph Left Indent Command.
DecrementParagraphLeftIndentCommandDecrement Paragraph Left Indent Command.
ChangeUnderlineDecorationCommandChange Underline Decoration Command.
ChangeParagraphListLevelCommandChange Paragraph List Level Command.
IncrementParagraphListLevelCommandIncrement Paragraph List Level Command.
DecrementParagraphListLevelCommandDecrement Paragraph List Level Command.
ChangeLayoutModeCommandChange Layout Mode Command.
ClearAllFormattingCommandClear All Formatting Command.
ClearFormattingCommandClear Formatting Command.
CopyCommandCopy Command.
CopyFormattingCommandCopy Formatting Command.
CutCommandCut Command.
PasteCommandPaste Command.
PasteFormattingCommandPaste Formatting Command.
CancelFormatPainterCommandCancel Format Painter Command.
DeleteCommandDelete Command.
InsertTextCommandInsert Text Command.
InsertDocumentFragmentCommandInsert Document Fragment Command.
InsertSectionBreakCommandInsert Section Break Command.
InsertPageBreakCommandInsert Page Break Command.
InsertLineBreakCommandInsert Line Break Command.
InsertColumnBreakCommandInsert Column Break Command.
InsertNonBreakingSpaceCommandInsert Non Breaking Space Command.
InsertBreakCommandInsert Break Command.
InsertPictureCommandInsert Picture Command.
ShowInsertHyperlinkDialogCommandShow Insert Hyperlink Dialog Command.
ShowManageBookmarksDialogCommandShow Manage Bookmarks Dialog Command.
ShowInsertSymbolWindowCommandShow Insert Symbol Window Command.
ShowInsertCrossReferenceWindowCommandShow Insert Cross Reference Window Command.
ShowInsertTableOfContentsDialogCommandShow Insert Table Of Contents Dialog Command.
ShowInsertCaptionDialogCommandShow Insert Caption Dialog Command.
ShowParagraphPropertiesDialogCommandShow Paragraph Properties Dialog Command.
ShowSectionColumnsDialogCommandShow Section Columns Dialog Command.
ChangePageMarginsCommandChange Page Margins Command.
ChangePageOrientationCommandChange Page Orientation Command.
ChangePaperTypeCommandChange Paper Type Command.
ShowFindReplaceDialogCommandShow Find Replace Dialog Command.
ShowFontPropertiesDialogCommandShow Font Properties Dialog Command.
ShowTablePropertiesDialogCommandShow Table Properties Dialog Command.
ShowTableBordersDialogCommandShow Table Borders Dialog Command.
ShowSpellCheckingDialogCommandShow Spell Checking Dialog Command.
ShowInsertTableDialogCommandShow Insert Table Dialog Command.
InsertTableCommandInsert Table Command.
InsertTableColumnCommandInsert Table Column Command.
InsertTableColumnToTheLeftCommandInsert Table Column To The Left Command.
InsertTableColumnToTheRightCommandInsert Table Column To The Right Command.
InsertTableRowCommandInsert Table Row Command.
InsertTableRowAboveCommandInsert Table Row Above Command.
InsertTableRowBelowCommandInsert Table Row Below Command.
SelectTableEmptyCommandSelect Table Empty Command.
SelectTableCommandSelect Table Command.
SelectTableCellCommandSelect Table Cell Command.
SelectTableRowCommandSelect Table Row Command.
SelectTableColumnCommandSelect Table Column Command.
DeleteTableCommandDelete Table Command.
DeleteTableRowCommandDelete Table Row Command.
DeleteTableColumnCommandDelete Table Column Command.
ToggleTableLookFirstRowOptionCommandToggle Table Look First Row Option Command.
ToggleTableLookLastRowOptionCommandToggle Table Look Last Row Option Command.
ToggleTableLookFirstColumnOptionCommandToggle Table Look First Column Option Command.
ToggleTableLookLastColumnOptionCommandToggle Table Look Last Column Option Command.
ToggleTableLookRowBandingOptionCommandToggle Table Look Row Banding Option Command.
ToggleTableLookColumnBandingOptionCommandToggle Table Look Column Banding Option Command.
MergeTableCellsCommandMerge Table Cells Command.
ToggleTableRowRepeatOnEveryPageCommandToggle Table Row Repeat On Every Page Command.
UnmergeTableCellsCommandUnmerge Table Cells Command.
ToggleSpellCheckingCommandToggle Spell Checking Command.
OpenContextMenuOnNextSpellingErrorCommandOpen Context Menu On Next Spelling Error Command.
TableCellContentAlignmentCommandTable Cell Content Alignment Command.
ChangeTableColumnsLayoutModeCommandChange Table Columns Layout Mode Command.
ChangeParagraphBackgroundColorCommandChange Paragraph Background Color Command.
MoveCaretCommandMove Caret Command.
SelectAllCommandSelect All Command.
InsertCommentCommandInsert Comment Command.
RemoveHyperlinkCommandRemove Hyperlink Command.
DeleteCommentCommandDelete Comment Command.
DeleteAllCommentsCommandDelete All Comments Command.
GoToNextCommentCommandGo To Next Comment Command.
GoToPreviousCommentCommandGo To Previous Comment Command.
GoToNextRevisionCommandGo To Next Revision Command.
GoToPreviousRevisionCommandGo To Previous Revision Command.
AcceptRevisionCommandAccept Revision Command.
RejectRevisionCommandReject Revision Command.
AcceptAllRevisionsCommandAccept All Revisions Command.
RejectAllRevisionsCommandReject All Revisions Command.
ToggleTrackChangesCommandToggle Track Changes Command.
SelectHyperlinkCommandSelect Hyperlink Command.
ToggleCommentsCommandToggle Comments Command.
OpenHyperlinkCommandOpen Hyperlink Command.
CopyHyperlinkCommandCopy Hyperlink Command.
ShowImageEditorCommandShow Image Editor Command.
ChangeSectionColumnsCommandChange Section Columns Command.
ChangeSectionHeaderTopMarginCommandChange Section Header Top Margin Command.
ChangeSectionFooterBottomMarginCommandChange Section Footer Bottom Margin Command.
ToggleDifferentFirstPageHeaderFooterCommandToggle Different First Page Header Footer Command.
ToggleDifferentOddAndEvenPagesHeaderFooterCommandToggle Different Odd And Even Pages Header Footer Command.
ShowFloatingBlockPropertiesDialogCommandShow Floating Block Properties Dialog Command.
ShowTabStopsPropertiesDialogCommandShow Tab Stops Properties Dialog Command.
ChangeImageWrappingStyleCommandChange Image Wrapping Style Command.
ConvertImageToImageInlineCommandConvert Image To Image Inline Command.
InsertFieldCommandInsert Field Command.
InsertCitationFieldCommandInsert Citation Field Command.
InsertBibliographyFieldCommandInsert Bibliography Field Command.
ShowAddNewBibliographicReferenceDialogCommandShow Add New Bibliographic Reference Dialog Command.
ShowManageBibliographicSourcesDialogCommandShow Manage Bibliographic Sources Dialog Command.
InsertPageFieldCommandInsert Page Field Command.
ToggleFieldDisplayModeCommandToggle Field Display Mode Command.
ChangeAllFieldsDisplayModeCommandChange All Fields Display Mode Command.
PreviewFirstMailMergeDataRecordCommandPreview First Mail Merge Data Record Command.
PreviewPreviousMailMergeDataRecordCommandPreview Previous Mail Merge Data Record Command.
PreviewNextMailMergeDataRecordCommandPreview Next Mail Merge Data Record Command.
PreviewLastMailMergeDataRecordCommandPreview Last Mail Merge Data Record Command.
InsertMergeFieldEmptyCommandInsert Merge Field Empty Command.
MailMergeCommandMail Merge Command.
ToggleMergeFieldsHighlightCommandToggle Merge Fields Highlight Command.
UpdateFieldCommandUpdate Field Command.
UpdateAllFieldsCommandUpdate All Fields Command.
RestartNumberingCommandRestart Numbering Command.
ContinueNumberingCommandContinue Numbering Command.
ChangeBibliographicStyleCommandChange Bibliographic Style Command.
ShowInsertDateTimeDialogCommandShow Insert Date Time Dialog Command.
ShowSetNumberingValueDialogCommandShow Set Numbering Value Dialog Command.
EditHeaderCommandEdit Header Command.
EditFooterCommandEdit Footer Command.
ChangeUnderlineColorCommandChange Underline Color Command.
ExitHeaderFooterEditModeCommandExit Header Footer Edit Mode Command.
MoveSelectionCommandMove Selection Command.
ShowStyleFormattingPropertiesDialogCommandShow Style Formatting Properties Dialog Command.
ShowManageStylesDialogCommandShow Manage Styles Dialog Command.
InsertSdtCommandInsert Sdt Command.
ShowContentControlPropertiesDialogCommandShow Content Control Properties Dialog Command.
ShowDefineNewListStyleDialogCommandShow Define New List Style Dialog Command.
ToggleDocumentProtectionCommandToggle Document Protection Command.
ShowChangeEditingPermissionsDialogCommandShow Change Editing Permissions Dialog Command.
ChangeStyleNameCommandChange Style Name Command.
ToggleHeaderFooterLinkToPreviousCommandToggle Header Footer Link To Previous Command.
ShowWatermarkSettingsDialogCommandShow Watermark Settings Dialog Command.
ShowCodeFormattingDialogCommandShow Code Formatting Dialog Command.
DeleteCodeBlockCommandDelete Code Block Command.
RemoveWatermarkCommandRemove Watermark Command.
ChangeIntegratedWatermarkTypeCommandChange Integrated Watermark Type Command.
InsertFootnoteCommandInsert Footnote Command.
InsertEndnoteCommandInsert Endnote Command.
ShowNotesDialogCommandShow Notes Dialog Command.
GoToNextFootnoteCommandGo To Next Footnote Command.
GoToPreviousFootnoteCommandGo To Previous Footnote Command.
GoToNextEndnoteCommandGo To Next Endnote Command.
GoToPreviousEndnoteCommandGo To Previous Endnote Command.
IncrementPageWidthCommandIncrement Page Width Command.
DecrementPageWidthCommandDecrement Page Width Command.
InsertLineNumberingCommandAdds line numbering to the selected sections.
SuppressLineNumberingForCurrentParagraphCommandDisables the numbering for the currently selected paragraph(s).
ShowLineNumberingDialogCommandOpens the dialog enabling users to set different line numbering options.

Here is an example with a RadToggleButton control.

C#
        
private RadToggleButton boldButton;
        
public Commands()
{
    this.InitializeComponent();
    this.boldButton = new RadToggleButton();
    this.boldButton.Text = "Bold";
    this.boldButton.Click += this.boldButton_Click;
    this.boldButton.Location = new Point(10, 10);
    this.Controls.Add(this.boldButton);
}
        
private void boldButton_Click(object sender, EventArgs e)
{
    this.radRichTextEditor1.Commands.ToggleBoldCommand.Execute();
}

Now, every time the button is clicked it will toggle the boldness of the current selection. The thing it won't do is to response to the current state of the selection. For example, if the context of the caret is a bold text, the button won't get automatically toggled. In order to implement this behavior you have to handle the ToggleStateChanged event of the ToggleBoldCommand. Here is an example.

C#
    
private void Commands_Load(object sender, EventArgs e)
{
    this.radRichTextEditor1.Commands.ToggleBoldCommand.ToggleStateChanged += this.ToggleBoldCommand_ToggleStateChanged;
}
    
public void ToggleBoldCommand_ToggleStateChanged(object sender, StylePropertyChangedEventArgs<bool> e)
{
    this.boldButton.IsChecked = e.NewValue;
}

Now, the button will respond to the current state of the selection.

WinForms RadRichTextEditor ToggleBoldCommand

In this article
Commands
Not finding the help you need?
Contact Support