com.groupdocs.editor.htmlcss.css.datatypes

Class Length.Unit

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.groupdocs.editor.htmlcss.css.datatypes.Length.Unit
  • Enclosing class:
    Length


    public static final class Length.Unit
    extends com.aspose.ms.System.Enum

    All supported length units


    https://developer.mozilla.org/en-US/docs/Web/CSS/length#Units

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • 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.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject
    • 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