Skip to main content
All docs
V24.1

DXGraphicsUnitConverter.Convert(SizeF, 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 SizeF Convert(
    SizeF size,
    DXGraphicsUnit fromUnit,
    DXGraphicsUnit toUnit
)

Parameters

Name Type Description
size SizeF

The size to convert.

fromUnit DXGraphicsUnit

The initial unit of measure.

toUnit DXGraphicsUnit

The required unit of measure.

Returns

Type Description
SizeF

The conversion result.

See Also