Command UI

  • 4 minutes to read

You can add a set of toolbars or ribbon tabs to your Rich Text Editor application. Toolbars and ribbons contain commands that allow users to perform basic operations (format and edit text, create lists, add headers and footers, insert tables, mail merge, etc.). For examples on how to add a command UI to the RichEditControl, refer to the following help topic: Getting Started.

TIP

Bar and ribbon items are generated with vector icons. To switch to bitmap icons, set the WindowsFormsSettings.AllowDefaultSvgImages property to DefaultBoolean.False on application startup.

This topic lists available toolbars, commands corresponding to buttons on each toolbar and ribbon group, and other topics related to these features.

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 also hidden.

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

Hyphenation:

SetHyphenateDocumentAutomaticCommand

SetHyphenateDocumentNoneCommand

ChangeHyphenationOptionsCommand

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

richedit-ribbon-footnotes

richedit-bars-footnotes

InsertFootnoteCommand

InsertEndnoteCommand

NextFootnoteCommand

NextEndnoteCommand

PreviousFootnoteCommand

PreviousEndnoteCommand

OpenShowNoteFormCommand

ShowNotesFormCommand

Footnotes and Endnotes

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

rte-bars-comment

NewCommentCommand

NextCommentCommand

PreviousCommentCommand

DeleteOneCommentCommand

Comments

RichEdit_Ribbon_Tracking

RTEBarsTracking

ToggleTrackChangesCommand

ToggleTrackChangesBarItemCommand

ToggleLockTrackingCommand

ChangeDisplayForReviewModeCommand

ShowMarkupCommand

ViewCommentsCommand

ReviewersCommand

ShowReviewingPaneCommand

Track Changes Comments

RichEdit_Ribbon_Changes

bars-changes

AcceptAllChangesCommand

AcceptAllChangesAndStopTracking

AcceptAllChangesShownCommand

RejectAllChangesCommand

RejectAllChangesAndStopTracking

RejectAllChangesShownCommand

NextChangeCommand

PreviousChangeCommand

Track Changes

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.