Global.PointsToCentimeters Method
Word Developer Reference |
Converts a measurement from points to centimeters (1 centimeter = 28.35 points). Returns the converted measurement as a Single.
Syntax
expression.PointsToCentimeters(Points)
expression A variable that represents a Global object. Optional.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Points | Required | Single | The measurement, in points. |
Return Value
Single
Example
This example converts a measurement of 30 points to the corresponding number of centimeters.
Visual Basic for Applications |
---|
|
This example converts the value of the variable sngData (a measurement in points) to centimeters, inches, lines, millimeters, or picas, depending on the value of the variable intUnit (a value from 1 through 5 that indicates the resulting unit of measurement).
Visual Basic for Applications |
---|
|
See Also