csharp
public readonly record struct InlineDeclarationOne declaration read out of a style="…" attribute, before it is interned.
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 PropertyThe property, as a stylesheet writes it — width, flex-grow.
public string ValueIts value, with any !important already taken off.
public bool ImportantWhether 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