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

Units.PixelsToDocuments(RectangleF, Single, Single) Method

Converts rectangle coordinates from pixels to documents.

Namespace: DevExpress.Office.Utils

Assembly: DevExpress.Office.v20.2.Core.dll

NuGet Package: DevExpress.Office.Core

Declaration

public static RectangleF PixelsToDocuments(
    RectangleF rect,
    float dpiX,
    float dpiY
)

Parameters

Name Type Description
rect RectangleF

A RectangleF structure with values in pixels, to be converted to documents.

dpiX Single

A dpi value used for conversion of the X-coordinate.

dpiY Single

A dpi value used for conversion of the Y-coordinate.

Returns

Type Description
RectangleF

A RectangleF structure composed of four floating-point numbers that represent the location and size of a rectangle.

See Also