The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Measure Units

You can select a single unit of measurement to specify various distance values of a document (page width and height, margins, etc.). Set the Document.Unit property to one of the following values:

Unit of Measurement Description
Document Default property value. A document unit corresponds to 1/300 of an inch. Internal calculations are currently performed using this unit of measurement.
Centimeter Centimeter (1 inch is equal to 2.54 centimeters)
Inch Inch
Millimeter Millimeter (10 millimeters are equal to 1 centimeter)
Point Point (1 inch is equal to 72 points)

Measure Units in the WordProcessing Document

The Document.Unit property value determines the units of measurements in the following cases:

Document elements on the document layout level are measured in DocumentLayoutUnit.Twip (1 inch is equal to 1440 twips). This measurement is used when you determine the coordinates of the layout elements (the LayoutElementBase.Bounds property).

Tip

Use the DevExpress.Office.Utils.Units class methods to convert units of measurements.