Skip to main content
A newer version of this page is available. .

Command UI

  • 4 minutes to read

When creating a rich text editor, you can provide it with a set of toolbars or ribbon tabs to let your end users perform basic operations (format and edit text, create lists, add headers and footers, work with tables, perform advanced mail merge, etc.) via command UI. Refer to the Getting Started section for examples on how to provide a command UI for the RichEditControl.

Tip

The bar and ribbon items are generated with vector icons by default. Set the WindowsFormsSettings.AllowDefaultSvgImages property to DefaultBoolean.False on application startup to switch to the bitmap icons.

This topic contains a list of available toolbars, commands corresponding to buttons located on each toolbar and ribbon group and a set of documents to which you can refer to get detailed information on the related functionality.

File

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_Common

RTEBarsCommon

RTEBars_Info

UndoCommand

RedoCommand

CreateEmptyDocumentCommand

LoadDocumentCommand

SaveDocumentCommand

SaveDocumentAsCommand

QuickPrintCommand

PrintCommand

PrintPreviewCommand

ShowDocumentPropertiesFormCommand

DevExpress.XtraRichEdit.Commands.EncryptDocumentCommand

Import and Export

Supported Formats

How to: Create a New Document with the RichEdit Control

How to: Load a Document into the RichEditControl

How to: Save a Document in the RichEdit Control

Restrictions and Protection

Home

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_Clipboard

RTEBarsClipboard

CutSelectionCommand

CopySelectionCommand

PasteSelectionCommand

ShowPasteSpecialFormCommand

Paste Special Dialog

RichEdit_Ribbon_Font

RTEBarsFont

ChangeFontNameCommand

ChangeFontSizeCommand

DecreaseFontSizeCommand

IncreaseFontSizeCommand

ClearFormattingCommand

ToggleFontBoldCommand

ToggleFontItalicCommand

ToggleFontUnderlineCommand

ToggleFontDoubleUnderlineCommand

ToggleFontStrikeoutCommand

ToggleFontDoubleStrikeoutCommand

ToggleFontSubscriptCommand

ToggleFontSuperscriptCommand

MakeTextUpperCaseCommand

MakeTextLowerCaseCommand

ToggleTextCaseCommand

ChangeFontColorCommand

ChangeFontBackColorCommand

ShowFontFormCommand

Text Formatting

How to: Change Formatting of Selected Text

Font Dialog

RichEdit_Ribbon_Paragraph

RTEBarParagraph

ToggleBulletedListCommand

ToggleSimpleNumberingListCommand

ToggleMultiLevelListCommand

DecrementIndentCommand

IncrementIndentCommand

SetSingleParagraphSpacingCommand

SetSesquialteralParagraphSpacingCommand

SetDoubleParagraphSpacingCommand

AddSpacingBeforeParagraphCommand

AddSpacingAfterParagraphCommand

ToggleParagraphAlignmentLeftCommand

ToggleParagraphAlignmentCenterCommand

ToggleParagraphAlignmentRightCommand

ToggleParagraphAlignmentJustifyCommand

ChangeParagraphBackColorCommand

ToggleShowWhitespaceCommand

ShowParagraphFormCommand

ToggleParagraphRightToLeftCommand

ToggleParagraphLeftToRightCommand

Paragraphs

Paragraph and Tabs Dialogs

Text Formatting

Image

IMAGE

RtlToggleBulletedListCommand

RtlToggleMultiLevelListCommand

RtlToggleSimpleNumberingListCommand

RtlDecrementIndentCommand

RtlIncrementIndentCommand

ToggleParagraphRightToLeftCommand

ToggleParagraphLeftToRightCommand

ToggleParagraphAlignmentLeftCommand

ToggleParagraphAlignmentCenterCommand

ToggleParagraphAlignmentRightCommand

ToggleParagraphAlignmentArabicJustifyCommand

ToggleParagraphAlignmentArabicJustifyGroupCommand

ToggleParagraphAlignmentJustifyCommand

ToggleParagraphAlignmentJustifyHighCommand

ToggleParagraphAlignmentJustifyLowCommand

ToggleParagraphAlignmentJustifyMediumCommand

ToggleParagraphAlignmentDistributeCommand

ToggleParagraphAlignmentThaiDistributeCommand

ToggleShowWhitespaceCommand

SetSingleParagraphSpacingCommand

SetSesquialteralParagraphSpacingCommand

SetDoubleParagraphSpacingCommand

AddSpacingBeforeParagraphCommand

AddSpacingAfterParagraphCommand

ChangeParagraphBackColorCommand

ShowParagraphFormCommand

RichEdit_Ribbon_Styles

RTEBarsStyles

ShowEditStyleFormCommand

RichEdit_Ribbon_Editing

RTEBarsEditing

FindCommand

ReplaceCommand

Search and Replace

How to: Customize the Search Form

Find and Replace Dialog

Note

If you hide items in the Paragraph group, make sure that items for RTL text are hidden as well.

Insert

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_Page

RTEBarsPages

InsertPageBreakCommand

Sections

RichEdit_Ribbon_Tables

RTEBarsTables

InsertTableCommand

Tables

Table Layout Dialogs

RichEdit_Ribbon_Illustrations

RTEBarsIllustrations

InsertFloatingObjectPictureCommand

Shapes

RichEdit_Ribbon_Links

RTEBarsLinks

CreateBookmarkCommand

CreateHyperlinkCommand

EditHyperlinkCommand

RichEditHyperlinkCommandBase

ShowHyperlinkFormCommand

Hyperlinks and Bookmarks

Bookmark Dialog

Edit Hyperlink Dialog

RichEdit_Ribbon_HeaderFooter

RTEBarsHeaderNFooter

EditPageHeaderCommand

EditPageFooterCommand

InsertPageNumberFieldCommand

InsertPageCountFieldCommand

Headers and Footers

How to: Insert Page Numbers in Header or Footer

RichEdit_Ribbon_Text

RTEBarsText

InsertTextBoxCommand

Shapes

RichEdit_Ribbon_Symbols

RTEBarsSymbols

ShowSymbolFormCommand

Symbol Dialog

Page Layout

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_PageSetup

RTEBarsPageSetup

Margins:

SetNormalSectionPageMarginsCommand

SetNarrowSectionPageMarginsCommand

SetModerateSectionPageMarginsCommand

SetWideSectionPageMarginsCommand

Orientation:

SetLandscapePageOrientationCommand

SetPortraitPageOrientationCommand

Size:

ChangeSectionPaperKindCommand

Columns:

SetSectionOneColumnCommand

SetSectionTwoColumnsCommand

SetSectionThreeColumnsCommand

ShowColumnsSetupFormCommand

Breaks:

InsertPageBreakCommand

InsertColumnBreakCommand

InsertSectionBreakNextPageCommand

InsertSectionBreakEvenPageCommand

InsertSectionBreakOddPageCommand

InsertSectionBreakContinuousCommand

Line Numbers:

SetSectionLineNumberingNoneCommand

SetSectionLineNumberingContinuousCommand

SetSectionLineNumberingRestartNewPageCommand

SetSectionLineNumberingRestartNewSectionCommand

ToggleParagraphSuppressLineNumbersCommand

ShowLineNumberingFormCommand

Document Layout

Sections

Line Numbering

How to: Configure the Page Layout Programmatically

How to: Create a Three-Column Layout with Uniform Columns

Columns Dialog

Line Numbers Dialog

Page Setup Dialog

RichEdit_Ribbon_PageBackground

RTEBarsPageBackground

ChangePageColorCommand

References

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_TableOfContents

RTEBarsTableOfContents

InsertTableOfContentsCommand

UpdateTableOfContentsCommand

SetParagraphBodyTextLevelCommand

SetParagraphHeading1LevelCommand

SetParagraphHeading2LevelCommand

SetParagraphHeading3LevelCommand

SetParagraphHeading4LevelCommand

SetParagraphHeading5LevelCommand

SetParagraphHeading6LevelCommand

SetParagraphHeading7LevelCommand

SetParagraphHeading8LevelCommand

SetParagraphHeading9LevelCommand

SetParagraphBodyTextLevelCommand

Table of Contents

RichEdit_Ribbon_Captions

RTEBarsCaptions

InsertFiguresCaptionCommand

InsertTablesCaptionCommand

InsertEquationsCaptionCommand

InsertTableOfFiguresCommand

InsertTableOfTablesCommand

InsertTableOfEquationsCommand

UpdateTableOfContentsCommand

Mail Merge

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_MailMerge

RTEBarsMailMerge

ToggleViewMergedDataCommand

ShowAllFieldCodesCommand

ShowAllFieldResultsCommand

FirstDataRecordCommand

PreviousDataRecordCommand

NextDataRecordCommand

LastDataRecordCommand

MailMergeSaveDocumentAsCommand

Mail Merge

Fields

Field Codes

Insert Merge Field Dialog

RichEditControl.CustomizeMergeFields

Review

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_Protect

RTEBarsProtect

ProtectDocumentCommand

ShowRangeEditingPermissionsFormCommand

UnprotectDocumentCommand

Restrictions and Protection

Range Permissions

Document Protection Dialogs

Editing Permissions Dialog

RichEdit_Ribbon_Proofing

RTEBarsProofing

CheckSpellingCommand

ShowLanguageFormCommand

Spell Checking

RichEdit_Ribbon_Comments

NewCommentCommand

NextCommentCommand

PreviousCommentCommand

DeleteOneCommentCommand

Comments

RichEdit_Ribbon_Tracking

RTEBarsTracking

ViewCommentsCommand

ReviewersCommand

ShowReviewingPaneCommand

View

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_DocumentViews

RTEBarsDocumentViews

SwitchToSimpleViewCommand

SwitchToDraftViewCommand

SwitchToPrintLayoutViewCommand

Views

RichEdit_Ribbon_Show

RTEBarsShow

ToggleShowHorizontalRulerCommand

ToggleShowVerticalRulerCommand

How to: Hide or Show ScrollBars and Rulers

RichEdit_Ribbon_Zoom

RTEBarsZoom

ZoomOutCommand

ZoomInCommand

 

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_Navigation

RTEBarsNavigation

GoToPageHeaderCommand

GoToPageFooterCommand

GoToNextPageHeaderFooterCommand

GoToPreviousPageHeaderFooterCommand

ToggleHeaderFooterLinkToPreviousCommand

Headers and Footers

RichEdit_Ribbon_Options

RTEBarsOptions

ToggleDifferentFirstPageCommand

ToggleDifferentOddAndEvenPagesCommand

RichEdit_Ribbon_Close

RTEBarsClose

ClosePageHeaderFooterCommand

Table Tools

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_TableStyleOptions

RTEBarsTableStylesOptions

ToggleFirstRowCommand

ToggleFirstColumnCommand

ToggleLastRowCommand

ToggleLastColumnCommand

ToggleBandedRowsCommand

ToggleBandedColumnsCommand

Tables

Table Properties Dialogs

Table Layout Dialogs

RichEdit_Ribbon_TableStyles

RTEBarsTableStyles

ShowTableStyleFormCommand

RichEdit_Ribbon_DrawBorders

RTEBarsBordersNShading

ChangeCurrentBorderRepositoryItemColorCommand

ChangeCurrentBorderRepositoryItemLineThicknessCommand

Shading:

ChangeTableCellsShadingCommand

Borders:

ToggleTableCellsBottomBorderCommand

ToggleTableCellsTopBorderCommand

ToggleTableCellsLeftBorderCommand

ToggleTableCellsRightBorderCommand

ResetTableCellsBordersCommand

ToggleTableCellsAllBordersCommand

ToggleTableCellsOutsideBorderCommand

ToggleTableCellsInsideBorderCommand

ToggleTableCellsInsideHorizontalBorderCommand

ToggleTableCellsInsideVerticalBorderCommand

ToggleShowTableGridLinesCommand

RichEdit_Ribbon_Table

RTEBarsTable

SelectTableCellCommand

SelectTableColumnsCommand

SelectTableRowCommand

SelectTableCommand

ToggleShowTableGridLinesCommand

ShowTablePropertiesFormCommand

RichEdit_Ribbon_RowsColumns

RTEBarsRowsNColumns

ShowDeleteTableCellsFormCommand

DeleteTableColumnsCommand

DeleteTableRowsCommand

DeleteTableCommand

InsertTableRowAboveCommand

InsertTableRowBelowCommand

InsertTableColumnToTheLeftCommand

InsertTableColumnToTheRightCommand

ShowInsertTableCellsFormCommand

RichEdit_Ribbon_Merge

RTEBarsMerge

MergeTableCellsCommand

ShowSplitTableCellsFormCommand

SplitTableCommand

RichEdit_Ribbon_CellSize

RTEBarsCellSize

ToggleTableAutoFitContentsCommand

ToggleTableAutoFitWindowCommand

ToggleTableFixedColumnWidthCommand

RichEdit_Ribbon_Alignment

RTEBarsAlignment

ToggleTableCellsTopLeftAlignmentCommand

ToggleTableCellsTopCenterAlignmentCommand

ToggleTableCellsTopRightAlignmentCommand

ToggleTableCellsMiddleLeftAlignmentCommand

ToggleTableCellsMiddleCenterAlignmentCommand

ToggleTableCellsMiddleRightAlignmentCommand

ToggleTableCellsBottomLeftAlignmentCommand

ToggleTableCellsBottomCenterAlignmentCommand

ToggleTableCellsBottomRightAlignmentCommand

Picture Tools

Ribbon Page Group

Toolbar

Commands

Read more…

RichEdit_Ribbon_PictureTools_ShapeStyles

RTEBarsShapeStyles

ChangeFloatingObjectFillColorCommand

ChangeFloatingObjectOutlineColorCommand

ChangeFloatingObjectOutlineWidthCommand

Shapes

RichEdit_Ribbon_PictureTools_Arrange

RTEBarsArrange

Wrap Type:

SetFloatingObjectBehindTextWrapTypeCommand

SetFloatingObjectInFrontOfTextWrapTypeCommand

SetFloatingObjectSquareTextWrapTypeCommand

SetFloatingObjectThroughTextWrapTypeCommand

SetFloatingObjectTightTextWrapTypeCommand

SetFloatingObjectTopAndBottomTextWrapTypeCommand

SetFloatingObjectInlineWithTextWrapTypeCommand

Position:

SetFloatingObjectBottomCenterAlignmentCommand

SetFloatingObjectBottomLeftAlignmentCommand

SetFloatingObjectBottomRightAlignmentCommand

SetFloatingObjectMiddleCenterAlignmentCommand

SetFloatingObjectMiddleLeftAlignmentCommand

SetFloatingObjectMiddleRightAlignmentCommand

SetFloatingObjectTopCenterAlignmentCommand

SetFloatingObjectTopLeftAlignmentCommand

SetFloatingObjectTopRightAlignmentCommand

Bring Forward:

FloatingObjectBringForwardCommand

FloatingObjectBringInFrontOfTextCommand

FloatingObjectBringToFrontCommand

Send Backward:

FloatingObjectSendBackwardCommand

FloatingObjectSendBehindTextCommand

FloatingObjectSendToBackCommand

Note

Commands executed via the Bar (Ribbon) user interface can throw unhandled exceptions if a problem occurs. Consider the situation when a document is being saved to a locked or read-only file. To prevent application failure, subscribe to the RichEditControl.UnhandledException event and set the RichEditUnhandledExceptionEventArgs.Handled property to true.