Vixen
02b45cc4
csharp
public readonly record struct InlineStyleId

A handle on one element's inline declarations.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A type of its own rather than a DeclarationRange, and the reason is a bug this had before it was one. Inline declarations live in a different arena from rules': a stylesheet reload throws the rules away and inline styles belong to elements, which outlive it. Both arenas held Declarations, so a range into one was assignment-compatible with a range into the other, and the resolver read inline styles out of the rule store — finding whatever declarations happened to sit at that offset. Every test passed but the one that asked what an inline style did.

Fields and properties (1)

  • public int Index

    Its slot in the store.

Methods (2)

  • public InlineStyleId(int Index)

    A handle on one element's inline declarations.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (9)

  • BridgeFixtureVixen.Ui.Tests
  • CascadeFixtureVixen.Ui.Styling.Tests
  • CascadeOrderTestsVixen.Ui.Styling.Tests
  • InlineStyleStoreVixen.Ui.Styling
  • StyleEngineVixen.Ui.Styling
  • StyleResolverVixen.Ui.Styling
  • StyleSharingKeyVixen.Ui.Styling
  • StyleTreeVixen.Ui.Styling
  • UiElementVixen.Ui