Skip to main content
All docs
V24.1

DXGraphicsUnitConverter.Convert(Single, DXGraphicsUnit, DXGraphicsUnit) Method

Adjusts the document margins calculated for the specified unit of measure according to a new unit of measure.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public static float Convert(
    float val,
    DXGraphicsUnit fromUnit,
    DXGraphicsUnit toUnit
)

Parameters

Name Type Description
val Single

The value to convert.

fromUnit DXGraphicsUnit

The initial unit of measure.

toUnit DXGraphicsUnit

The required unit of measure.

Returns

Type Description
Single

The conversion result.

See Also