.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Units.PixelsToDocuments(RectangleF, Single, Single) Method

Converts rectangle coordinates from pixels to documents.

Namespace: DevExpress.Office.Utils

Assembly: DevExpress.Office.v21.1.Core.dll

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