[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
    Supported Formats
   [Expand]Getting Started
   [Expand]RichEditControl Document
    Text Formatting
    Import and Export
   [Collapse]Page Layout
     Line Numbering
     Table of Contents
     Layout API
     Measure Units
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
   [Expand]Visual Elements
    HTML Tag Support
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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)

Measure Units

Expanded Supported Measure Units

DXRichEdit allows you to specify a single unit of measurement used by nearly all API functions. This unit of measurement can be specified by a RichEditControl's RichEditControl.Unit property or via the document's Document.Unit property. The document's Unit property has precedence over the corresponding property of a control.

The unit of measurement can be set to one of the following types:

  • Document

    Default property value. A document unit corresponds to 1/300 of an inch. Internal calculations are currently performed using this unit of measurement. Used when the Unit property is set to DocumentUnit.Document.

  • Centimeter

    Specifies a centimeter. Used when the Unit property is set to DocumentUnit.Centimeter.

  • Inch

    Specifies an inch. Used when the Unit property is set to DocumentUnit.Inch.

  • Point

    Specifies a point, the typographic unit of measure, equal to 1/72 of an inch. Used when the Unit property is set to DocumentUnit.Point.

  • Twip

    (From the TWentIeth of a Point) Twips are screen-independent units that ensure that the proportion of screen elements is the same on all display systems. A twip is defined as being 1/1440 of an inch. Twips are used in Rich Text Format. Used when the Unit property is set to DocumentLayoutUnit.Twip.

Expanded API Converters

The Units class provides several static methods intended for conversions between various measurement units. Note that unlike other methods, translation between pixels and length measurement units requires specifying the display resolution (dpi).

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