Vixen
02b45cc4
csharp
public enum LayoutUnit

How a length was written.

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

Remarks

Every length in a style is a value and one of these, never a bare float, because width: 0 and width: auto and "no width was set" are three different things that a float alone cannot tell apart.

Fields and properties (7)

  • Undefined

    Nothing was set.

  • Point

    An absolute length.

  • Percent

    A fraction of the containing block, resolved during layout.

  • Auto

    Decided by the algorithm: content size, or the space left over.

  • MaxContent

    As wide as the content wants to be, ignoring available space.

  • FitContent

    Content size, clamped to the available space.

  • Stretch

    Fill the available space.

Used by (7)

  • IntrinsicSizeTestsVixen.Ui.Layout.Tests
  • LayoutStyleBridgeTestsVixen.Ui.Tests
  • LayoutStyleBuilderVixen.Ui
  • LayoutTreeVixen.Ui.Layout
  • LayoutTreeTestsVixen.Ui.Layout.Tests
  • StyleLengthVixen.Ui.Layout
  • StyleResolutionVixen.Ui.Layout