Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Box

PageCanvas.ConvertToDrawingLayoutUnits(Point, DocumentLayoutUnit) Method

Converts an object’s measurement units to the specified ones.

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public Point ConvertToDrawingLayoutUnits(
    Point point,
    DocumentLayoutUnit unit
)

Parameters

Name Type Description
point Point

The point whose coordinates will be converted to the specified measurement unit.

unit DocumentLayoutUnit

Specifies measurement units for conversion.

Returns

Type Description
Point

The point whose coordinates have been converted to the specified measurement units.

Remarks

When you print or export documents, document objects may appear differently from the way they look on screen.To make them look the same both in Print Preview and display outputs, set the DocumentLayoutUnit parameter to the same DocumentLayoutUnit value as the one specified for the document layout.

Note

This method is effective only if the drawn shape has coordinates and parameters represented by absolute values. There is no need to convert parameters represented by relative values – they are already measured in the same unit as the document layout.

See Also