Vixen
dd8b0a81
csharp
public readonly record struct InlineDeclaration

One declaration read out of a style="…" attribute, before it is interned.

Read the guide page for this →

Remarks

⚠ Strings rather than a Declaration, and that is the point of the type. A Declaration holds indices into a NameTable, so producing one commits the caller to a particular engine's tables at parse time. The one consumer that exists — BuildContext's style attribute — needs to hand what it read to UiElement.SetStyle, which does its own interning and also has to be told which properties to remove; a name it cannot spell is no use for that.

Fields and properties (3)

  • public string Property

    The property, as a stylesheet writes it — width, flex-grow.

  • public string Value

    Its value, with any !important already taken off.

  • public bool Important

    Whether the declaration carried !important.

Methods (1)

  • public InlineDeclaration(string Property, string Value, bool Important)

    One declaration read out of a style="…" attribute, before it is interned.

Used by (4)

  • BuildContextVixen.Ui
  • ForcedColorsTestsVixen.Ui.Tests
  • StyleSheetLoaderVixen.Ui.Styling
  • StyleSheetLoadingTestsVixen.Ui.Styling.Tests