Skip to main content
Box

PageCanvas.ConvertToDrawingLayoutUnits(Point, DocumentLayoutUnit) Method

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

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

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