GraphicsUnitConverter.Convert(MarginsF, GraphicsUnit, GraphicsUnit) Method

Adjusts the document margins 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 MarginsF Convert(
    MarginsF val,
    GraphicsUnit fromUnit,
    GraphicsUnit toUnit
)
Public Shared Function Convert(
    val As MarginsF,
    fromUnit As GraphicsUnit,
    toUnit As GraphicsUnit
) As MarginsF

Parameters

Name Type Description
val DevExpress.XtraPrinting.Native.MarginsF

A DevExpress.XtraPrinting.Native.MarginsF object.

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
DevExpress.XtraPrinting.Native.MarginsF

A DevExpress.XtraPrinting.Native.MarginsF object.

See Also