Description
Assembly: Docs.Html (in Docs.Html.dll) Version: 2.1.0.0 (2.1)
The Unit constants.
Namespace: Docs.CssAssembly: Docs.Html (in Docs.Html.dll) Version: 2.1.0.0 (2.1)
Syntax
C# | Visual Basic | Visual C++ |
public enum Unit
Public Enumeration Unit
public enum class Unit
Members
Member | Value | Description |
---|---|---|
None | 0 | None |
Percent | 1 | Percent (%) |
EM | 2 | The font size of the element (or, to the parent element's font size if set on the 'font-size' property) |
EX | 3 | The x-height of the element's font |
PX | 4 | Viewing device |
GD | 5 | The grid defined by 'layout-grid' described in the CSS3 Text module [CSS3TEXT] |
REM | 6 | The font size of the root element |
VW | 7 | The viewport's width |
VH | 8 | The viewport's height |
VM | 9 | Vhe viewport's height or width, whichever is smaller of the two |
CH | 10 | The width of the "0" (ZERO, U+0030) glyph found in the font for the font size used to render. If the "0" glyph is not found in the font, the average character width may be used. How is the "average character width" found? |
MM | 11 | mm |
CM | 12 | cm |
IN | 13 | inch |
PT | 14 | pt |
PC | 15 | pc |
DEG | 16 | degrees |
GRAD | 17 | grads |
RAD | 18 | radians |
TURN | 19 | turns |
MS | 20 | ms |
S | 21 | s |
Hz | 22 | Hz |
kHz | 23 | kHz |