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
|
Full Usage:
Auto
|
Automatic / content-derived size. |
Full Usage:
Em
|
Relative to the current font size. |
Full Usage:
Fr
|
Fractional unit of remaining space — only meaningful for grid tracks. |
Full Usage:
Percent
|
Percentage of the containing block. |
Full Usage:
Pt
|
Typographic points (1/72 inch) — the natural unit for print / pagination. |
Full Usage:
Px
|
Device-independent pixels — the natural unit for screen / fluid layout. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsAuto
Returns: bool
|
|
Full Usage:
this.IsEm
Returns: bool
|
|
Full Usage:
this.IsFr
Returns: bool
|
|
Full Usage:
this.IsPercent
Returns: bool
|
|
Full Usage:
this.IsPt
Returns: bool
|
|
Full Usage:
this.IsPx
Returns: bool
|
|
Nao