Back to API Reference
Enum

CssValueFormat

The value shape a CSS property carries, selecting the built-in converters that bridge UniText's unit grammar and CSS in both directions on the InlineStyle channels.

public static readonly CssValueFormat Verbatim = 0

The parameter is already a valid CSS value and vice versa (font-family, color names / hex).

public static readonly CssValueFormat Length = 1

A CSS length (font-size, letter-spacing): px/%/em pass through (a bare UniText px number gains px on copy; CSS pt/rem approximate to px on paste); deltas and keywords have no rendering.

public static readonly CssValueFormat LineHeight = 2

A CSS line-height: like Length, but a unitless CSS value is the multiplier form and maps to UniText em.

public static readonly CssValueFormat Color = 3

A CSS color: rgb()/rgba() functions convert to hex on paste; hex and named colors pass through.