Skip to main content
All docs
V26.1
  • Units.PixelsToTwips(RectangleF, Single, Single) Method

    Converts pixels to twips.

    Namespace: DevExpress.Office.Utils

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

    Declaration

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

    Parameters

    Name Type Description
    rect RectangleF

    The value in pixels.

    dpiX Single

    The horizontal resolution in dots per inch (DPI).

    dpiY Single

    The vertical resolution in dots per inch (DPI).

    Returns

    Type Description
    RectangleF

    The value in twips.

    See Also