GraphicsUnitConverter.Convert(SizeF, GraphicsUnit, GraphicsUnit) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

public static SizeF Convert(
    SizeF val,
    GraphicsUnit fromUnit,
    GraphicsUnit toUnit
)
Public Shared Function Convert(
    val As SizeF,
    fromUnit As GraphicsUnit,
    toUnit As GraphicsUnit
) As SizeF

Parameters

Name Type Description
val SizeF

A SizeF structure.

fromUnit GraphicsUnit

A GraphicsUnit enumeration value, specifying the initial unit of measure.

toUnit GraphicsUnit

A GraphicsUnit enumeration value, specifying the required unit of measure.

Returns

Type Description
SizeF

A SizeF structure.

See Also