[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    Spell Checking
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
   [Collapse]Visual Elements
     Command UI
     Views
     Rulers
     Reviewing Pane
     Pop-up Menus
    [Expand]Dialogs
     End User Restrictions
    Services
    Events
    Commands
    Keyboard Shortcuts
    HTML Tag Support
   [Expand]Examples
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Command UI

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.

Expanded File

Expanded Home

Ribbon Page Group

Toolbar

Commands

Read more...

CutSelectionCommand

CopySelectionCommand

PasteSelectionCommand

ShowPasteSpecialFormCommand

Paste Special Dialog

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

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

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

ShowEditStyleFormCommand

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.

Expanded Insert

Expanded Page Layout

Expanded References

Expanded Mail Merge

Expanded Review

Expanded View

Expanded Header and Footer Tools

Expanded Table Tools

Ribbon Page Group

Toolbar

Commands

Read more...

ToggleFirstRowCommand

ToggleFirstColumnCommand

ToggleLastRowCommand

ToggleLastColumnCommand

ToggleBandedRowsCommand

ToggleBandedColumnsCommand

Tables

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

Expanded Picture Tools

Ribbon Page Group

Toolbar

Commands

Read more...

ChangeFloatingObjectFillColorCommand

ChangeFloatingObjectOutlineColorCommand

ChangeFloatingObjectOutlineWidthCommand

Shapes

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.

Is this topic helpful?​​​​​​​