GraphicsUnitConverter.Convert(RectangleDF, GraphicsUnit, GraphicsUnit) Method

Adjusts the location and size of a rectangle 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 RectangleDF Convert(
    RectangleDF val,
    GraphicsUnit fromUnit,
    GraphicsUnit toUnit
)
Public Shared Function Convert(
    val As RectangleDF,
    fromUnit As GraphicsUnit,
    toUnit As GraphicsUnit
) As RectangleDF

Parameters

Name Type Description
val DevExpress.XtraPrinting.Native.RectangleDF

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

A DevExpress.XtraPrinting.Native.RectangleDF structure.

See Also