Skip to main content

Units.PixelsToDocuments(RectangleF, Single, Single) Method

Converts rectangle coordinates from pixels to documents.

Namespace: DevExpress.Office.Utils

Assembly: DevExpress.Office.v24.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