Header menu logo Nao

Unit Type

Measurement unit for a length in the unified document model. Fluid formats (markdown/html/text) lean on `Px`/`Percent`/`Em`; paginated formats (pdf/word/ppt) lean on `Pt`. `Fr` and `Auto` exist for grid tracks.

Union cases

Union case Description

Auto

Full Usage: Auto

Automatic / content-derived size.

Em

Full Usage: Em

Relative to the current font size.

Fr

Full Usage: Fr

Fractional unit of remaining space — only meaningful for grid tracks.

Percent

Full Usage: Percent

Percentage of the containing block.

Pt

Full Usage: Pt

Typographic points (1/72 inch) — the natural unit for print / pagination.

Px

Full Usage: Px

Device-independent pixels — the natural unit for screen / fluid layout.

Instance members

Instance member Description

this.IsAuto

Full Usage: this.IsAuto

Returns: bool
Returns: bool

this.IsEm

Full Usage: this.IsEm

Returns: bool
Returns: bool

this.IsFr

Full Usage: this.IsFr

Returns: bool
Returns: bool

this.IsPercent

Full Usage: this.IsPercent

Returns: bool
Returns: bool

this.IsPt

Full Usage: this.IsPt

Returns: bool
Returns: bool

this.IsPx

Full Usage: this.IsPx

Returns: bool
Returns: bool

Type something to start searching.