Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Enum

HtmlCssLengthUnit

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Length units accepted by the owned static-rendering subset.

Inheritance

  • Enum
  • HtmlCssLengthUnit

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Values

public const HtmlCssLengthUnit Px #

CSS pixels.

Value: 0
public const HtmlCssLengthUnit Pt #

Points.

Value: 1
public const HtmlCssLengthUnit Pc #

Picas.

Value: 2
public const HtmlCssLengthUnit In #

Inches.

Value: 3
public const HtmlCssLengthUnit Cm #

Centimeters.

Value: 4
public const HtmlCssLengthUnit Mm #

Millimeters.

Value: 5
public const HtmlCssLengthUnit Q #

Quarter millimeters.

Value: 6
public const HtmlCssLengthUnit Em #

The element font size.

Value: 7
public const HtmlCssLengthUnit Rem #

The root element font size.

Value: 8
public const HtmlCssLengthUnit Vw #

One percent of the default viewport width.

Value: 9
public const HtmlCssLengthUnit Vh #

One percent of the default viewport height.

Value: 10
public const HtmlCssLengthUnit Vmin #

One percent of the smaller default viewport dimension.

Value: 11
public const HtmlCssLengthUnit Vmax #

One percent of the larger default viewport dimension.

Value: 12
public const HtmlCssLengthUnit Svw #

One percent of the small viewport width.

Value: 13
public const HtmlCssLengthUnit Svh #

One percent of the small viewport height.

Value: 14
public const HtmlCssLengthUnit Svmin #

One percent of the smaller small-viewport dimension.

Value: 15
public const HtmlCssLengthUnit Svmax #

One percent of the larger small-viewport dimension.

Value: 16
public const HtmlCssLengthUnit Lvw #

One percent of the large viewport width.

Value: 17
public const HtmlCssLengthUnit Lvh #

One percent of the large viewport height.

Value: 18
public const HtmlCssLengthUnit Lvmin #

One percent of the smaller large-viewport dimension.

Value: 19
public const HtmlCssLengthUnit Lvmax #

One percent of the larger large-viewport dimension.

Value: 20
public const HtmlCssLengthUnit Dvw #

One percent of the dynamic viewport width.

Value: 21
public const HtmlCssLengthUnit Dvh #

One percent of the dynamic viewport height.

Value: 22
public const HtmlCssLengthUnit Dvmin #

One percent of the smaller dynamic-viewport dimension.

Value: 23
public const HtmlCssLengthUnit Dvmax #

One percent of the larger dynamic-viewport dimension.

Value: 24
public const HtmlCssLengthUnit Cqw #

One percent of the query container width.

Value: 25
public const HtmlCssLengthUnit Cqh #

One percent of the query container height.

Value: 26
public const HtmlCssLengthUnit Cqi #

One percent of the query container inline size.

Value: 27
public const HtmlCssLengthUnit Cqb #

One percent of the query container block size.

Value: 28
public const HtmlCssLengthUnit Cqmin #

One percent of the smaller query-container dimension.

Value: 29
public const HtmlCssLengthUnit Cqmax #

One percent of the larger query-container dimension.

Value: 30
public const HtmlCssLengthUnit Ex #

The element font's x-height, approximated as half the font size when metrics are unavailable.

Value: 31
public const HtmlCssLengthUnit Ch #

The zero-glyph advance, approximated as 0.5em or 1em for upright vertical text when metrics are unavailable.

Value: 32