InchesToPoints
Converts inches to points.
Syntax
expression.InchesToPoints(inches);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| inches | Required | number | The number of inches to convert to points. |
Returns
number
Example
This example shows how to convert inches to points.
- Code
- Result
const inches = 100;
const points = Api.InchesToPoints(inches);
const text = inches + ' inches are equal to ' + points + ' points.';
let worksheet = Api.GetActiveSheet();
worksheet.GetRange('B2').SetValue(text);