Skip to main content

Units.DocumentsToPixels(Size, Single, Single) Method

Converts the specified value in documents to pixels.

Namespace: DevExpress.Office.Utils

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

Declaration

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

Parameters

Name Type Description
val Size

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
Size

The value converted to pixels.

See Also