com.groupdocs.editor.htmlcss.css.datatypes

Class Length.Unit

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static byte Ch
      Ch.
      static byte Cm
      Cm.
      static byte Em
      Em.
      static byte Ex
      Ex (x-length).
      static byte In
      In.
      static byte Mm
      Mm.
      static byte Pc
      Pc.
      static byte Percent
      The value is relative to a fixed (external) value, that is context dependent.
      static byte Pt
      Pt.
      static byte Px
      Pixel.
      static byte Rem
      Rem.
      static byte Unitless
      Unitless - no defined length unit.
      static byte Vh
      Vh - viewport height.
      static byte Vmax
      Vmax.
      static byte Vmin
      Vmin.
      static byte Vw
      Vw - viewport width.
    • Field Detail

      • Ch

        public static final byte Ch

        Ch. This unit represents the width, or more precisely the advance measure, of the glyph '0' (zero, the Unicode character U+0030) in the element's font.

        See Also:
        Constant Field Values
      • Em

        public static final byte Em

        Em. This unit represents the calculated font-size of the element.

        See Also:
        Constant Field Values
      • Ex

        public static final byte Ex

        Ex (x-length). This unit represents the x-height of the element's font. On fonts with the 'x' letter, this is generally the height of lowercase letters in the font; 1ex ≈ 0.5em in many fonts.

        See Also:
        Constant Field Values
      • Percent

        public static final byte Percent

        The value is relative to a fixed (external) value, that is context dependent. 1% = 1/100 of the external value.

        See Also:
        Constant Field Values
      • Pt

        public static final byte Pt

        Pt. One point is 1/72th of an inch or 0.353 mm.

        See Also:
        Constant Field Values
      • Px

        public static final byte Px

        Pixel. Relative to the viewing device. For screen display, typically one device pixel (dot) of the display.

        See Also:
        Constant Field Values
      • Rem

        public static final byte Rem

        Rem. This unit represents the font-size of the root element (e.g. the font-size of the <html> element). When used on the font-size on this root element, it represents its initial value.

        See Also:
        Constant Field Values
      • Unitless

        public static final byte Unitless

        Unitless - no defined length unit. Default value.

        See Also:
        Constant Field Values
      • Vh

        public static final byte Vh

        Vh - viewport height. 1/100th of the height of the viewport.

        See Also:
        Constant Field Values
      • Vmax

        public static final byte Vmax

        Vmax. 1/100th of the maximum value between the height and the width of the viewport.

        See Also:
        Constant Field Values
      • Vmin

        public static final byte Vmin

        Vmin. 1/100th of the minimum value between the height and the width of the viewport.

        See Also:
        Constant Field Values
      • Vw

        public static final byte Vw

        Vw - viewport width. 1/100th of the width of the viewport.

        See Also:
        Constant Field Values
    • Method Detail

      • getUnit

        public static byte[] getUnit()