[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [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]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Collapse]RichEditControl Document
    [Expand]Document Structure
    [Collapse]Document Elements
      Positions and Ranges
      Inline Pictures
      Text Boxes
      Hyperlinks and Bookmarks
      Headers and Footers
      Range Permissions
      Document Properties
     Measure Units
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Spell Checking
    AutoCorrect Feature
    Track Changes
    Mail Merge
    Restrictions and Protection
   [Expand]Visual Elements
    Keyboard Shortcuts
    HTML Tag Support
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [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]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)


The Paragraph class represents paragraphs in the RichEditControl. You can manage them in code and using the User Interface

Expanded Paragraphs in the User Interface

End-users can press Enter to divide text into paragraphs, and the Paragraph group on the Home ribbon tab allows them to format paragraphs. Refer to the How to: Create the RichEditControl with a Ribbon UI lesson for information on how to provide a Ribbon UI for the RichEditControl.

End-users can specify advanced paragraph settings using the Paragraph Dialog. You can invoke this dialog from the ribbon group or from the context menu.


You can restrict end-users from formatting paragraphs or creating new paragraphs. Set the DocumentCapabilitiesOptions.Paragraphs, DocumentCapabilitiesOptions.ParagraphFormatting, or DocumentCapabilitiesOptions.ParagraphTabs property to DocumentCapability.Hidden or DocumentCapability.Disabled to disable or hide the corresponding commands in the Ribbon UI and the pop-up menu.

The RichEditControl can display, print and export to PDF format documents with paragraph borders.


The control does not provide user interface elements to create or modify paragraph borders.

Expanded Paragraphs in Code

The ParagraphCollection contains all document paragraphs. Access a specific paragraph by it index using the SubDocument.Paragraphs property. You can also retrieve the paragraph related to the given range using the ReadOnlyParagraphCollection.Get method.

Use one of the following methods to insert new paragraph:

Paragraphs can be formatted directly or using document styles. Refer to the Text Formatting topic for more information.


The RichEditControl does not provide an API to manage paragraph borders.

The code sample below shows how to change paragraph formatting in code:


A complete sample project is available at: WinForms RichEdit Document API


We recommend using the ParagraphProperties options to format paragraphs instead of specifying the formatting options directly to the Paragraph object. Use the Paragraph object's properties to check the information.

Expanded See Also

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