Back to Devexpress

Command UI in Rich Text Editor for WinForms

windowsforms-118661-controls-and-libraries-rich-text-editor-visual-elements-command-ui.md

latest43.7 KB
Original Source

Command UI in Rich Text Editor for WinForms

  • May 29, 2023
  • 3 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 GroupToolbarCommandsRead more…
UndoCommand
RedoCommand
CreateEmptyDocumentCommand
LoadDocumentCommand
SaveDocumentCommand
SaveDocumentAsCommand
QuickPrintCommand
PrintCommand
PrintPreviewCommand
ShowDocumentPropertiesFormCommand
DevExpress.XtraRichEdit.Commands.EncryptDocumentCommandImport 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 GroupToolbarCommandsRead more…
CutSelectionCommand
CopySelectionCommand
PasteSelectionCommand
ShowPasteSpecialFormCommandPaste Special Dialog
ChangeFontNameCommand
ChangeDoubleFontSizeCommand
DecreaseFontSizeCommand
IncreaseFontSizeCommand
ClearFormattingCommand
ToggleFontBoldCommand
ToggleFontItalicCommand
ToggleFontUnderlineCommand
ToggleFontDoubleUnderlineCommand
ToggleFontStrikeoutCommand
ToggleFontDoubleStrikeoutCommand
ToggleFontSubscriptCommand
ToggleFontSuperscriptCommand
MakeTextUpperCaseCommand
MakeTextLowerCaseCommand
ToggleTextCaseCommand
ChangeFontColorCommand
ChangeFontBackColorCommand
ShowFontFormCommandText Formatting
How to: Change Formatting of Selected Text
Font Dialog
ToggleBulletedListCommand
ToggleSimpleNumberingListCommand
ToggleMultiLevelListCommand
DecrementIndentCommand
IncrementIndentCommand
SetSingleParagraphSpacingCommand
SetSesquialteralParagraphSpacingCommand
SetDoubleParagraphSpacingCommand
AddSpacingBeforeParagraphCommand
AddSpacingAfterParagraphCommand
ToggleParagraphAlignmentLeftCommand
ToggleParagraphAlignmentCenterCommand
ToggleParagraphAlignmentRightCommand
ToggleParagraphAlignmentJustifyCommand
ChangeParagraphBackColorCommand
ToggleShowWhitespaceCommand
ShowParagraphFormCommand
ToggleParagraphRightToLeftCommand
ToggleParagraphLeftToRightCommandParagraphs
Paragraph and Tabs Dialogs
Text Formatting
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
ShowParagraphFormCommandParagraphs
Paragraph and Tabs Dialogs
Text Formatting
ShowEditStyleFormCommand
FindCommand
ReplaceCommandHow 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 GroupToolbarCommandsRead more…
InsertPageBreakCommandSections
InsertTableCommandTables
Table Layout Dialogs
InsertFloatingObjectPictureCommandShapes
CreateBookmarkCommand
CreateHyperlinkCommand
EditHyperlinkCommand
RichEditHyperlinkCommandBase
ShowHyperlinkFormCommandHyperlinks and Bookmarks
Bookmark Dialog
Edit Hyperlink Dialog
EditPageHeaderCommand
EditPageFooterCommand
InsertPageNumberFieldCommand
InsertPageCountFieldCommandHeaders and Footers How to: Insert Page Numbers in Header or Footer
InsertTextBoxCommandShapes
ShowSymbolFormCommandSymbol Dialog

Page Layout

Ribbon Page GroupToolbarCommandsRead more…
Margins:
SetNormalSectionPageMarginsCommand
SetNarrowSectionPageMarginsCommand
SetModerateSectionPageMarginsCommand
SetWideSectionPageMarginsCommand
Orientation:
SetLandscapePageOrientationCommand
SetPortraitPageOrientationCommand
Size:
ChangeSectionPaperKindCommand
Columns:
](/OfficeFileAPI/DevExpress.XtraRichEdit.Commands.SetSectionTwoColumnsCommand)
SetSectionThreeColumnsCommand
ShowColumnsSetupFormCommand
Breaks:
InsertPageBreakCommand
InsertColumnBreakCommand
InsertSectionBreakNextPageCommand
InsertSectionBreakEvenPageCommand
InsertSectionBreakOddPageCommand
InsertSectionBreakContinuousCommand
Line Numbers:
SetSectionLineNumberingNoneCommand
SetSectionLineNumberingContinuousCommand
SetSectionLineNumberingRestartNewPageCommand
SetSectionLineNumberingRestartNewSectionCommand
ToggleParagraphSuppressLineNumbersCommand
ShowLineNumberingFormCommand
Hyphenation:
SetHyphenateDocumentAutomaticCommand
SetHyphenateDocumentNoneCommand
ChangeHyphenationOptionsCommandDocument 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
ChangePageColorCommand

References

Ribbon Page GroupToolbarCommandsRead more…
InsertTableOfContentsCommand
UpdateTableOfContentsCommand
SetParagraphBodyTextLevelCommand
SetParagraphHeading1LevelCommand
SetParagraphHeading2LevelCommand
SetParagraphHeading3LevelCommand
SetParagraphHeading4LevelCommand
SetParagraphHeading5LevelCommand
SetParagraphHeading6LevelCommand
SetParagraphHeading7LevelCommand
SetParagraphHeading8LevelCommand
SetParagraphHeading9LevelCommand
SetParagraphBodyTextLevelCommandTable of Contents
InsertFiguresCaptionCommand
InsertTablesCaptionCommand
InsertEquationsCaptionCommand
InsertTableOfFiguresCommand
InsertTableOfTablesCommand
InsertTableOfEquationsCommand
UpdateTableOfContentsCommand
InsertFootnoteCommand
InsertEndnoteCommand
NextFootnoteCommand
NextEndnoteCommand
PreviousFootnoteCommand
PreviousEndnoteCommand
OpenShowNoteFormCommand
ShowNotesFormCommandFootnotes and Endnotes

Mail Merge

Ribbon Page GroupToolbarCommandsRead more…
ToggleViewMergedDataCommand
ShowAllFieldCodesCommand
ShowAllFieldResultsCommand
FirstDataRecordCommand
PreviousDataRecordCommand
NextDataRecordCommand
LastDataRecordCommand
MailMergeSaveDocumentAsCommandMail Merge
Fields
Field Codes
Insert Merge Field Dialog
RichEditControl.CustomizeMergeFields

Review

Ribbon Page GroupToolbarCommandsRead more…
ProtectDocumentCommand
ShowRangeEditingPermissionsFormCommand
UnprotectDocumentCommandRestrictions and Protection
Range Permissions
Document Protection Dialogs
Editing Permissions Dialog
CheckSpellingCommand
ShowLanguageFormCommandSpell Checking
NewCommentCommandNextCommentCommand
PreviousCommentCommand
DeleteOneCommentCommandComments
ToggleTrackChangesCommand
ToggleTrackChangesBarItemCommand
ToggleLockTrackingCommand
ChangeDisplayForReviewModeCommand
ShowMarkupCommand
ViewCommentsCommand
ReviewersCommand
ShowReviewingPaneCommandTrack Changes
Comments
AcceptAllChangesCommand
AcceptAllChangesAndStopTracking
AcceptAllChangesShownCommand
RejectAllChangesCommand
RejectAllChangesAndStopTracking
RejectAllChangesShownCommand
NextChangeCommand
PreviousChangeCommandTrack Changes

View

Ribbon Page GroupToolbarCommandsRead more…
SwitchToSimpleViewCommand
SwitchToDraftViewCommand
SwitchToPrintLayoutViewCommandViews
ToggleShowHorizontalRulerCommand
ToggleShowVerticalRulerCommandHow to: Hide or Show ScrollBars and Rulers
ZoomOutCommand
ZoomInCommand
Ribbon Page GroupToolbarCommandsRead more…
GoToPageHeaderCommand
GoToPageFooterCommand
GoToNextPageHeaderFooterCommand
GoToPreviousPageHeaderFooterCommand
ToggleHeaderFooterLinkToPreviousCommandHeaders and Footers
ToggleDifferentFirstPageCommand
ToggleDifferentOddAndEvenPagesCommand
ClosePageHeaderFooterCommand

Table Tools

Ribbon Page GroupToolbarCommandsRead more…
ToggleFirstRowCommand
ToggleFirstColumnCommand
ToggleLastRowCommand
ToggleLastColumnCommand
ToggleBandedRowsCommand
ToggleBandedColumnsCommandTables
Table Properties Dialogs
Table Layout Dialogs
ShowTableStyleFormCommand
ChangeCurrentBorderRepositoryItemColorCommand
ChangeCurrentBorderRepositoryItemLineThicknessCommand
Shading:
ChangeTableCellsShadingCommand
Borders:
ToggleTableCellsBottomBorderCommand
ToggleTableCellsTopBorderCommand
ToggleTableCellsLeftBorderCommand
ToggleTableCellsRightBorderCommand
ResetTableCellsBordersCommand
ToggleTableCellsAllBordersCommand
ToggleTableCellsOutsideBorderCommand
ToggleTableCellsInsideBorderCommand
ToggleTableCellsInsideHorizontalBorderCommand
ToggleTableCellsInsideVerticalBorderCommand
ToggleShowTableGridLinesCommand
SelectTableCellCommand
SelectTableColumnsCommand
SelectTableRowCommand
SelectTableCommand
ToggleShowTableGridLinesCommand
ShowTablePropertiesFormCommand
ShowDeleteTableCellsFormCommand
DeleteTableColumnsCommand
DeleteTableRowsCommand
DeleteTableCommand
InsertTableRowAboveCommand
InsertTableRowBelowCommand
InsertTableColumnToTheLeftCommand
InsertTableColumnToTheRightCommand
ShowInsertTableCellsFormCommand
MergeTableCellsCommand
ShowSplitTableCellsFormCommand
SplitTableCommand
ToggleTableAutoFitContentsCommand
ToggleTableAutoFitWindowCommand
ToggleTableFixedColumnWidthCommand
ToggleTableCellsTopLeftAlignmentCommand
ToggleTableCellsTopCenterAlignmentCommand
ToggleTableCellsTopRightAlignmentCommand
ToggleTableCellsMiddleLeftAlignmentCommand
ToggleTableCellsMiddleCenterAlignmentCommand
ToggleTableCellsMiddleRightAlignmentCommand
ToggleTableCellsBottomLeftAlignmentCommand
ToggleTableCellsBottomCenterAlignmentCommand
ToggleTableCellsBottomRightAlignmentCommand

Picture Tools

Ribbon Page GroupToolbarCommandsRead more…
ChangeFloatingObjectFillColorCommand
ChangeFloatingObjectOutlineColorCommand
ChangeFloatingObjectOutlineWidthCommandShapes
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

The Command UI executes commands that can throw unhandled exceptions if a problem occurs. To prevent application failure, subscribe to the RichEditControl.UnhandledException event and set the RichEditUnhandledExceptionEventArgs.Handled property to true.