Skip to main content
A newer version of this page is available. .

XRConvert Class

Enables you to convert value types and adjust values to different measure units.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.Printing.v18.1.Core.dll

Declaration

public class XRConvert :
    GraphicsUnitConverter

Example

This example illustrates how to adjust the document margins from one DPI value (corresponding to tenths of a millimeter) to another (corresponding to device-independent pixels) by using the XRConvert.ConvertMargins method.

using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...

void ConvertMargins(){ 
printableComponentLink.Margins = XRConvert.ConvertMargins(printableComponentLink.Margins, 
    GraphicsDpi.TenthsOfAMillimeter, 
    GraphicsDpi.DeviceIndependentPixel);
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the XRConvert class.

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.

Inheritance

See Also