Skip to main content
All docs
V24.2

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.2.dll

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