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.1.Core.dll

NuGet Packages: DevExpress.Office.Core, DevExpress.Win.Navigation


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


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.


Type Description

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

See Also