Command UI in Rich Text Editor
- 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
- Home
- Insert
- Page Layout
- References
- Mail Merge
- Review
- View
- Header & Footer Tools
- Table Tools
- Picture Tools
File
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
ShowDocumentPropertiesFormCommand DevExpress.XtraRichEdit.Commands.EncryptDocumentCommand |
How to: Create a New Document with the RichEdit Control How to: Load a Document into the RichEditControl |
Home
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… |
---|---|---|---|
CreateHyperlinkCommand RichEditHyperlinkCommandBase | |||
Page Layout
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
Margins: SetNormalSectionPageMarginsCommand SetNarrowSectionPageMarginsCommand SetModerateSectionPageMarginsCommand SetWideSectionPageMarginsCommand Orientation: SetLandscapePageOrientationCommand SetPortraitPageOrientationCommand Size: Columns: Breaks: InsertSectionBreakNextPageCommand InsertSectionBreakEvenPageCommand InsertSectionBreakOddPageCommand InsertSectionBreakContinuousCommand Line Numbers: SetSectionLineNumberingNoneCommand SetSectionLineNumberingContinuousCommand SetSectionLineNumberingRestartNewPageCommand SetSectionLineNumberingRestartNewSectionCommand ToggleParagraphSuppressLineNumbersCommand Hyphenation: SetHyphenateDocumentAutomaticCommand SetHyphenateDocumentNoneCommand ChangeHyphenationOptionsCommand |
How to: Configure the Page Layout Programmatically | ||
References
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
SetParagraphBodyTextLevelCommand SetParagraphHeading1LevelCommand SetParagraphHeading2LevelCommand SetParagraphHeading3LevelCommand SetParagraphHeading4LevelCommand SetParagraphHeading5LevelCommand SetParagraphHeading6LevelCommand SetParagraphHeading7LevelCommand SetParagraphHeading8LevelCommand | |||
InsertFootnoteCommand InsertEndnoteCommand NextFootnoteCommand NextEndnoteCommand PreviousFootnoteCommand PreviousEndnoteCommand OpenShowNoteFormCommand ShowNotesFormCommand |
Mail Merge
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
Review
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
ToggleTrackChangesCommand ToggleTrackChangesBarItemCommand ToggleLockTrackingCommand ChangeDisplayForReviewModeCommand ShowMarkupCommand | |||
AcceptAllChangesCommand AcceptAllChangesAndStopTracking AcceptAllChangesShownCommand RejectAllChangesCommand RejectAllChangesAndStopTracking RejectAllChangesShownCommand NextChangeCommand PreviousChangeCommand |
View
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
|
Header and Footer Tools
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
GoToNextPageHeaderFooterCommand | |||
Table Tools
Ribbon Page Group | Toolbar | Commands | Read more… |
---|---|---|---|
ChangeCurrentBorderRepositoryItemColorCommand ChangeCurrentBorderRepositoryItemLineThicknessCommand Shading: ChangeTableCellsShadingCommand Borders: ToggleTableCellsBottomBorderCommand ToggleTableCellsTopBorderCommand ToggleTableCellsLeftBorderCommand ToggleTableCellsRightBorderCommand ToggleTableCellsAllBordersCommand ToggleTableCellsOutsideBorderCommand ToggleTableCellsInsideBorderCommand ToggleTableCellsInsideHorizontalBorderCommand | |||
SelectTableCellCommand SelectTableColumnsCommand SelectTableRowCommand | |||
ShowDeleteTableCellsFormCommand InsertTableColumnToTheLeftCommand | |||
ToggleTableAutoFitContentsCommand | |||
ToggleTableCellsTopLeftAlignmentCommand ToggleTableCellsTopCenterAlignmentCommand ToggleTableCellsTopRightAlignmentCommand ToggleTableCellsMiddleLeftAlignmentCommand ToggleTableCellsMiddleCenterAlignmentCommand ToggleTableCellsMiddleRightAlignmentCommand ToggleTableCellsBottomLeftAlignmentCommand |
Picture Tools
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.