API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.ToUnits method
Converts a given value from specified units into the current document units
Syntax:
Function ToUnits(ByVal Value As Double, ByVal FromUnit As cdrUnit) As Double
Parameters:
Name Type Description
Value
Double
FromUnit
Remarks:
The ToUnits method converts a given value from specified units into the current document units.