[Expand]General Information
[Collapse]WinForms Controls
 [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]Map Control
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Spell Checking
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
   [Collapse]Visual Elements
    [Collapse]Rich Edit Control
      Editor Elements
      Reviewing Pane
      Horizontal Ruler
      Vertical Ruler
    [Expand]Command UI
     Pop-up Menus
    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)

Vertical Ruler

The vertical ruler is located along the left border of the document. It allows you to adjust top and bottom margins and change table row heights.




Adjust Page Margins Position the cursor on the ruler at the current margin so it transforms into the double-headed vertical arrow. Drag it to increase or decrease the margin. The SectionMargins.Top and SectionMargins.Bottom properties.

Use notation:
richEditControl1.Document.Sections[0].Margins.Top, richEditControl1.Document.Sections[0].Margins.Bottom

Adjust Table Row Height Position the cursor on the ruler at the text boundaries, so that it transforms into the double-headed vertical arrow. Drag it to adjust the row height. TableRow.Height

To hide the ruler to get more space for your document, set the RulerOptions.Visibility to RichEditScrollbarVisibility.Hidden using the following notation.

By default, the ruler shows the DocumentUnit.Document (1/300 of an inch) measurement units. To change the ruler measurements, specify the control's measurement unit using the RichEditControl.Unit property. When a document is loaded in the RichEditControl, you can set the measurement unit with the Document.Unit property. The document setting is in effect until another document is loaded or a new document is created.

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