csharp
public enum LayoutUnitHow 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)
UndefinedNothing was set.
PointAn absolute length.
PercentA fraction of the containing block, resolved during layout.
AutoDecided by the algorithm: content size, or the space left over.
MaxContentAs wide as the content wants to be, ignoring available space.
FitContentContent size, clamped to the available space.
StretchFill 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