API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.ToInches method
To Inches
Syntax:
Function ToInches(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The ToInches method converts a numeric value to inches from tenths of a micron, which is the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.
Examples:
In the following code example, xInch and yInch are set to the x- and y-coordinates of the selected object in inches:
.GetPosition (x,y) xInch = TOINCHES (x) yInch = TOINCHES (y)