Skip to main content

MeasureUnits.ToPixels(MeasureUnit, Double) Method

Converts the value in the unit of measure to the value in pixels.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v24.1.Core.dll

NuGet Package: DevExpress.Diagram.Core

Declaration

public static double ToPixels(
    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 pixels.

See Also