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

Bar UI

  • 4 minutes to read

When creating a rich text editor, you can provide it with a set of toolbars 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 a bars UI. To get an example, refer to How to: Create the RichEditControl with a Bar UI.

Tip

The bar 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 a set of documents to which you can refer to get detailed information on the RichEditControl’s functionality provided by each toolbar.

 

Toolbar

Commands

Read more…

RTEBarsCommon

CreateEmptyDocumentCommand

LoadDocumentCommand

SaveDocumentCommand

SaveDocumentAsCommand

QuickPrintCommand

PrintCommand

PrintPreviewCommand

UndoCommand

RedoCommand

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

RTEBars_Info

ShowDocumentPropertiesFormCommand

Document Properties Dialog

RTEBarsClipboard

CutSelectionCommand

CopySelectionCommand

PasteSelectionCommand

ShowPasteSpecialFormCommand

Paste Special Dialog

RTEBarsFont

ChangeFontNameCommand

ChangeFontSizeCommand

ChangeFontColorCommand

ChangeFontBackColorCommand

ToggleFontBoldCommand

ToggleFontItalicCommand

ToggleFontUnderlineCommand

ToggleFontDoubleUnderlineCommand

ToggleFontStrikeoutCommand

ToggleFontDoubleStrikeoutCommand

ToggleFontSuperscriptCommand

ToggleFontSubscriptCommand

MakeTextUpperCaseCommand

MakeTextLowerCaseCommand

ToggleTextCaseCommand

IncreaseFontSizeCommand

DecreaseFontSizeCommand

ClearFormattingCommand

ShowFontFormCommand

Text Formatting

How to: Change Formatting of Selected Text

Font Dialog

RTEBarParagraph

ToggleParagraphAlignmentLeftCommand

ToggleParagraphAlignmentCenterCommand

ToggleParagraphAlignmentRightCommand

ToggleParagraphAlignmentJustifyCommand

SetSingleParagraphSpacingCommand

SetSesquialteralParagraphSpacingCommand

SetDoubleParagraphSpacingCommand

ShowLineSpacingFormCommand

AddSpacingBeforeParagraphCommand

AddSpacingAfterParagraphCommand

ToggleBulletedListCommand

ToggleSimpleNumberingListCommand

ToggleMultiLevelListCommand

DecrementIndentCommand

IncrementIndentCommand

ChangeParagraphBackColorCommand

ToggleShowWhitespaceCommand

ShowParagraphFormCommand

ToggleParagraphRightToLeftCommand

ToggleParagraphLeftToRightCommand

Paragraphs

Text Formatting

How to: Change Formatting of the Current Paragraph

Paragraph and Tabs Dialogs

RTL Text:

RTEBarsParagraphRtl

ToggleParagraphAlignmentLeftCommand

ToggleParagraphAlignmentCenterCommand

ToggleParagraphAlignmentRightCommand

ToggleParagraphAlignmentJustifyCommand

SetSingleParagraphSpacingCommand

SetSesquialteralParagraphSpacingCommand

SetDoubleParagraphSpacingCommand

ShowLineSpacingFormCommand

AddSpacingBeforeParagraphCommand

AddSpacingAfterParagraphCommand

RtlToggleBulletedListCommand

RtlToggleSimpleNumberingListCommand

RtlToggleMultiLevelListCommand

RtlDecrementIndentCommand

RtlIncrementIndentCommand

ChangeParagraphBackColorCommand

ToggleShowWhitespaceCommand

ShowParagraphFormCommand

ToggleParagraphRightToLeftCommand

ToggleParagraphLeftToRightCommand

Note

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

RTEBarsEditing

FindCommand

ReplaceCommand

How to: Use Regular Expressions to Convert Date Formats

How to: Customize the Search Form

Find and Replace Dialog

RTEBarsStyles

ShowEditStyleFormCommand

Styles

RTEBarsPages

InsertPageBreakCommand

 

RTEBarsTables

InsertTableCommand

Tables

Table Layout Dialogs

RTEBarsIllustrations

InsertPictureCommand

InsertFloatingObjectPictureCommand

Inline Pictures

Shapes

RTEBarsText

InsertTextBoxCommand

Shapes

RTEBarsLinks

CreateBookmarkCommand

ShowHyperlinkFormCommand

Hyperlinks and Bookmarks

Bookmark Dialog

Edit Hyperlink Dialog

RTEBarsHeaderNFooter

EditPageHeaderCommand

EditPageFooterCommand

InsertPageNumberFieldCommand

InsertPageCountFieldCommand

Headers and Footers

How to: Insert Page Numbers in Header or Footer

RTEBarsSymbols

ShowSymbolFormCommand

Symbol Dialog

RTEBarsPageSetup

Margins:

SetNormalSectionPageMarginsCommand

SetNarrowSectionPageMarginsCommand

SetModerateSectionPageMarginsCommand

SetWideSectionPageMarginsCommand

Orientation:

SetLandscapePageOrientationCommand

SetPortraitPageOrientationCommand

Size:

ChangeSectionPaperKindCommand

Columns:

SetSectionOneColumnCommand

SetSectionTwoColumnsCommand

SetSectionThreeColumnsCommand

ShowColumnsSetupFormCommand

Breaks:

InsertPageBreakCommand

InsertColumnBreakCommand

InsertSectionBreakNextPageCommand

InsertSectionBreakEvenPageCommand

InsertSectionBreakOddPageCommand

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

RTEBarsPageBackground

ChangePageColorCommand

 

RTEBarsMailMerge

ShowInsertMergeFieldFormCommand

InsertMergeFieldCommand

ShowAllFieldCodesCommand

ShowAllFieldResultsCommand

ToggleViewMergedDataCommand

Mail Merge

Fields

Field Codes

How to: Perform a Mail Merge

Insert Merge Field Dialog

RichEditControl.CustomizeMergeFields

RTEBarsDocumentViews

SwitchToSimpleViewCommand

SwitchToDraftViewCommand

SwitchToPrintLayoutViewCommand

Views

RTEBarsShow

ToggleShowHorizontalRulerCommand

ToggleShowVerticalRulerCommand

Editor Elements

How to: Hide or Show ScrollBars and Rulers

RTEBarsZoom

ZoomOutCommand

ZoomInCommand

 

RTEBarsNavigation

GoToPageHeaderCommand

GoToPageFooterCommand

GoToNextPageHeaderFooterCommand

GoToPreviousPageHeaderFooterCommand

ToggleHeaderFooterLinkToPreviousCommand

Headers and Footers

RTEBarsOptions

ToggleDifferentFirstPageCommand

ToggleDifferentOddAndEvenPagesCommand

Headers and Footers

RTEBarsClose

ClosePageHeaderFooterCommand

Headers and Footers

RTEBarsTableStyles

ChangeTableCellsShadingCommand

ShowTableStyleFormCommand

Tables

RTEBarsTableStylesOptions

ToggleFirstRowCommand

ToggleFirstColumnCommand

ToggleLastRowCommand

ToggleLastColumnCommand

ToggleBandedRowsCommand

ToggleBandedColumnsCommand

Tables

RTEBarsBordersNShading

ChangeCurrentBorderRepositoryItemColorCommand

ChangeCurrentBorderRepositoryItemLineThicknessCommand

Shading:

ChangeTableCellsShadingCommand

Borders:

ToggleTableCellsBottomBorderCommand

ToggleTableCellsTopBorderCommand

ToggleTableCellsLeftBorderCommand

ToggleTableCellsRightBorderCommand

ResetTableCellsBordersCommand

ToggleTableCellsAllBordersCommand

ToggleTableCellsOutsideBorderCommand

ToggleTableCellsInsideBorderCommand

ToggleTableCellsInsideHorizontalBorderCommand

ToggleTableCellsInsideVerticalBorderCommand

Tables

RTEBarsTable

SelectTableCellCommand

SelectTableColumnsCommand

SelectTableRowCommand

SelectTableCommand

ToggleShowTableGridLinesCommand

ShowTablePropertiesFormCommand

Tables

Table Properties Dialogs

RTEBarsRowsNColumns

ShowDeleteTableCellsFormCommand

DeleteTableColumnsCommand

DeleteTableRowsCommand

DeleteTableCommand

InsertTableRowAboveCommand

InsertTableRowBelowCommand

InsertTableColumnToTheLeftCommand

InsertTableColumnToTheRightCommand

ShowInsertTableCellsFormCommand

Tables

Table Layout Dialogs

RTEBarsMerge

MergeTableCellsCommand

ShowSplitTableCellsFormCommand

SplitTableCommand

Tables

Table Layout Dialogs

RTEBarsCellSize

ToggleTableAutoFitContentsCommand

ToggleTableAutoFitWindowCommand

ToggleTableFixedColumnWidthCommand

Tables

RTEBarsAlignment

ToggleTableCellsTopLeftAlignmentCommand

ToggleTableCellsTopCenterAlignmentCommand

ToggleTableCellsTopRightAlignmentCommand

ToggleTableCellsMiddleLeftAlignmentCommand

ToggleTableCellsMiddleCenterAlignmentCommand

ToggleTableCellsMiddleRightAlignmentCommand

ToggleTableCellsBottomLeftAlignmentCommand

ToggleTableCellsBottomCenterAlignmentCommand

ToggleTableCellsBottomRightAlignmentCommand

Tables

RTEBarsProtect

ProtectDocumentCommand

ShowRangeEditingPermissionsFormCommand

UnprotectDocumentCommand

Restrictions and Protection

Range Permissions

Document Protection Dialogs

Editing Permissions Dialog

RTEBarsProofing

CheckSpellingCommand

Spell Checking

RTEBarsTracking

NewCommentCommand

NextCommentCommand

PreviousCommentCommand

DeleteOneCommentCommand

Comments

RTEBarsTableOfContens

InsertTableOfContentsCommand

UpdateTableOfContentsCommand

SetParagraphBodyTextLevelCommand

SetParagraphHeading1LevelCommand

SetParagraphHeading2LevelCommand

SetParagraphHeading3LevelCommand

SetParagraphHeading4LevelCommand

SetParagraphHeading5LevelCommand

SetParagraphHeading6LevelCommand

SetParagraphHeading7LevelCommand

SetParagraphHeading8LevelCommand

SetParagraphHeading9LevelCommand

Table of Contents

RTEBarsCaptions

InsertFiguresCaptionCommand

InsertTablesCaptionCommand

InsertEquationsCaptionCommand

InsertTableOfFiguresCommand

InsertTableOfTablesCommand

InsertTableOfEquationsCommand

UpdateTableOfContentsCommand

Table of Contents

RTEBarsShapeStyles

ChangeFloatingObjectFillColorCommand

ChangeFloatingObjectOutlineColorCommand

ChangeFloatingObjectOutlineWidthCommand

Shapes

RTEBarsArrange

Wrap Type:

SetFloatingObjectBehindTextWrapTypeCommand

SetFloatingObjectInFrontOfTextWrapTypeCommand

SetFloatingObjectSquareTextWrapTypeCommand

SetFloatingObjectThroughTextWrapTypeCommand

SetFloatingObjectTightTextWrapTypeCommand

SetFloatingObjectTopAndBottomTextWrapTypeCommand

Position:

SetFloatingObjectBottomCenterAlignmentCommand

SetFloatingObjectBottomLeftAlignmentCommand

SetFloatingObjectBottomRightAlignmentCommand

SetFloatingObjectMiddleCenterAlignmentCommand

SetFloatingObjectMiddleLeftAlignmentCommand

SetFloatingObjectMiddleRightAlignmentCommand

SetFloatingObjectTopCenterAlignmentCommand

SetFloatingObjectTopLeftAlignmentCommand

SetFloatingObjectTopRightAlignmentCommand

Bring Forward:

FloatingObjectBringForwardCommand

FloatingObjectBringInFrontOfTextCommand

FloatingObjectBringToFrontCommand

Send Backward:

FloatingObjectSendBackwardCommand

FloatingObjectSendBehindTextCommand

FloatingObjectSendToBackCommand

Shapes

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.

See Also