UnitType class

UnitType class

Specifies the unit of measurement.

The UnitType type exposes the following members:

Properties

PropertyDescription
EMMeasurement is relative to the height of the parent element’s font.
EXMeasurement is relative to the height of the lowercase letter x of the parent element’s font.
CHMeasurement is relative to width of the “0” (zero).
REMMeasurement is relative to font-size of the root element.
VWMeasurement is relative to 1% of the width of the viewport*
VHMeasurement is relative to 1% of the height of the viewport* Try it
VMINMeasurement is relative to 1% of viewport’s* smaller dimension Try it
VMAXMeasurement is relative to 1% of viewport’s* larger dimension Try it
CMMeasurement is in centimeters
MMMeasurement is in millimeters
QMeasurement is in quarter-millimeters
INMeasurement is in inches
PCMeasurement is in picas
PTMeasurement is in points
PXMeasurement is in pixels
DEGMeasurement is in degrees.
GRADMeasurement is in gradians.
RADMeasurement is in radians.
TURNMeasurement is in turns.
SMeasurement is in seconds.
MSMeasurement is in milliseconds.
HZMeasurement is in hertz.
K_HZMeasurement is in kiloHertz.
DPIMeasurement is in dots per inch.
DPCMMeasurement is in dots per centimeters.
DPPXMeasurement is in Dots per pixels unit.
AUTOMeasurement is not defined.
PERCENTAGEMeasurement is in percentage.
INTEGERMeasurement is an integer number.
REALMeasurement is a real number.

Methods

MethodDescription
equalsDetermines whether the specified UnitType, is equal to this instance.

See Also