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

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentsToPixels(Rectangle, Single, Single) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also