Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
    Overview
   [Expand]Getting Started
   [Collapse]Fundamentals
    [Expand]RichEditControl
    [Expand]Document
     Supported Document Formats
    [Expand]Fields
     Commands
     Services
     Layout API
     Product Class Structure
     Default Keyboard Shortcuts
     Measure Units
     HTML Tag Interpretation
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Measure Units

Expanded Supported Measure Units

XtraRichEdit 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 layout measure unit can be specified via the RichEditControl.LayoutUnit property. For better appearance (to avoid incorrect kerning) use DocumentLayoutUnit.Pixel setting, although it may decrease layout accuracy.

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.
  • Millimeter
    Specifies a millimeter. Used when the Unit property is set to DocumentUnit.Millimeter.
  • 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 to ensure that the proportion of screen elements are the same on all display systems. A twip is defined as being 1/1440 of an inch. Twips are used in Rich Text Format. From XtraRichEdit version 10.1 twips are used for internal calculations to improve display quality. Used when the LayoutUnit 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).

Expanded See Also

How would you rate this topic?​​​​​​​