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

MeasureUnits.ToDeviceIndependentPixels(MeasureUnit, Double) Method

Converts the value in the unit of measure to the value in device-independent pixels.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v20.2.Core.dll

NuGet Packages: DevExpress.Diagram.Core, DevExpress.WindowsDesktop.Diagram.Core

Declaration

public static double ToDeviceIndependentPixels(
    this MeasureUnit unit,
    double value
)

Parameters

Name Type Description
unit MeasureUnit

A unit of measure for the initial value.

value Double

A value to convert.

Returns

Type Description
Double

The value in device-independent pixels.

See Also