Skip to main content

Units.DocumentsToPixels(Rectangle, Single, Single) Method

Converts the specified value in documents to pixels.

Namespace: DevExpress.Office.Utils

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

NuGet Package: DevExpress.Office.Core

Declaration

public static Rectangle DocumentsToPixels(
    Rectangle val,
    float dpiX,
    float dpiY
)

Parameters

Name Type Description
val Rectangle

The value in documents to convert.

dpiX Single

The horizontal resolution of the display device, in dots per inch.

dpiY Single

The vertical resolution of the display device, in dots per inch.

Returns

Type Description
Rectangle

The value converted to pixels.

See Also