Back to API Reference
Interface

IMarkupValue

abstract

A serializable parameter value with a custom single-token markup form. Implement on a struct used as a ParameterAttribute field so the inspector and markup round-trip it through one token (e.g. a colour-or-swatch, or a mode-plus-value union). The editor discovers this by interface, so a user-defined modifier can add its own parameter types without touching the package. Simple types (numbers, enums, colours, UnitValue) don't need this — they round-trip generically.

Implementations(3)

Types that implement IMarkupValue.

public abstract string ToToken()

Serialize to the markup token (empty string for the default/unset form).

public abstract void FromToken()

Restore from a markup token — as produced by ToToken or authored in markup.