GraphicsUnitConverter.Convert(Rectangle, 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.v21.2.dll

Declaration

public static Rectangle Convert(
    Rectangle val,
    GraphicsUnit fromUnit,
    GraphicsUnit toUnit
)

Parameters

Name Type Description
val Rectangle

A Rectangle 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
Rectangle

A Rectangle structure.

See Also