A newer version of this page is available.
Switch to the current version.
GraphicsUnitConverter.Convert(Single, GraphicsUnit, GraphicsUnit) Method
Adjusts the floating-point value calculated for the specified unit of measure according to a new unit of measure.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Data.v18.2.dll
Declaration
public static float Convert(
float val,
GraphicsUnit fromUnit,
GraphicsUnit toUnit
)
Public Shared Function Convert(
val As Single,
fromUnit As GraphicsUnit,
toUnit As GraphicsUnit
) As Single
Parameters
Name | Type | Description |
---|---|---|
val | Single | A Single value. |
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 |
---|---|
Single | A Single value. |
See Also
Feedback