UnitType Fields

The UnitType type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberAuto
Measurement is not defined.
Public fieldStatic memberCh
Measurement is relative to width of the "0" (zero).
Public fieldStatic memberCm
Measurement is in centimeters
Public fieldStatic memberDeg
Measurement is in degrees.
Public fieldStatic memberDpcm
Measurement is in dots per centimeters.
Public fieldStatic memberDpi
Measurement is in dots per inch.
Public fieldStatic memberDppx
Measurement is in Dots per pixels unit.
Public fieldStatic memberEm
Measurement is relative to the height of the parent element's font.
Public fieldStatic memberEx
Measurement is relative to the height of the lowercase letter x of the parent element's font.
Public fieldStatic memberGrad
Measurement is in gradians.
Public fieldStatic memberHz
Measurement is in hertz.
Public fieldStatic memberIn
Measurement is in inches
Public fieldStatic memberInteger
Measurement is an integer number.
Public fieldStatic memberKHz
Measurement is in kiloHertz.
Public fieldStatic memberMm
Measurement is in millimeters
Public fieldStatic memberMs
Measurement is in milliseconds.
Public fieldStatic memberPc
Measurement is in picas
Public fieldStatic memberPercentage
Measurement is in percentage.
Public fieldStatic memberPt
Measurement is in points
Public fieldStatic memberPx
Measurement is in pixels
Public fieldStatic memberQ
Measurement is in quarter-millimeters
Public fieldStatic memberRad
Measurement is in radians.
Public fieldStatic memberReal
Measurement is a real number.
Public fieldStatic memberRem
Measurement is relative to font-size of the root element.
Public fieldStatic memberS
Measurement is in seconds.
Public fieldStatic memberTurn
Measurement is in turns.
Public fieldStatic memberVh
Measurement is relative to 1% of the height of the viewport* Try it
Public fieldStatic memberVmax
Measurement is relative to 1% of viewport's* larger dimension Try it
Public fieldStatic memberVmin
Measurement is relative to 1% of viewport's* smaller dimension Try it
Public fieldStatic memberVw
Measurement is relative to 1% of the width of the viewport*
See Also