public static final class Length.Unit
extends com.aspose.ms.System.Enum
All supported length units
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.
|
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.
public static final byte Cm
Cm. One centimeter (10 millimeters).
public static final byte Em
Em. This unit represents the calculated font-size of the element.
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.
public static final byte In
In. One inch (2.54 centimeters).
public static final byte Mm
Mm. One millimeter.
public static final byte Pc
Pc. One pica (12 points).
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.
public static final byte Pt
Pt. One point is 1/72th of an inch or 0.353 mm.
public static final byte Px
Pixel. Relative to the viewing device. For screen display, typically one device pixel (dot) of the display.
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.
public static final byte Unitless
Unitless - no defined length unit. Default value.
public static final byte Vh
Vh - viewport height. 1/100th of the height of the viewport.
public static final byte Vmax
Vmax. 1/100th of the maximum value between the height and the width of the viewport.
public static final byte Vmin
Vmin. 1/100th of the minimum value between the height and the width of the viewport.
public static final byte Vw
Vw - viewport width. 1/100th of the width of the viewport.
Copyright © 2020. All rights reserved.