Scripting > mrScriptMetadata User's Guide > mrScriptMetadata reference > Styles and templates > Units of length
 
Units of length
This list shows the units of length that can be used in mrScriptMetadata when defining the Height, Width, Cell Height, or Cell Width style properties. The value of those properties must always be expressed as strings, for example, “12pt”, “2cm”, “50%”, and so on. If no units are specified, for example, “100”, then pixels (“px”) are assumed.
Unit
Description
%
Percentage, relative to the parent control or label
cm
Centimeters
em
The size relative to the block size of the font currently in use
ex
The size relative to the height of a lowercase “x” in the font currently in use
in
Inches
mm
Millimeters
pc
Picas. One pica is equal to 12 points
pt
Points. One point is equal to 1/72 of an inch
px
Pixels
See
Styles and templates