csharp
public readonly record struct GridSizingFunctionOne half of a track sizing function — a minimum or a maximum.
Fields and properties (6)
public GridSizingKind KindWhat kind of size this is.
public float ValueThe number, for Points, Percent, Flex and FitContent. Meaningless otherwise.
public bool IsFitContentPercentWhether a FitContent argument was written as a percentage.
public static readonly GridSizingFunction AutoThe initial value of every track's minimum and of an unstated maximum.
public static readonly GridSizingFunction MinContentmin-content.
public static readonly GridSizingFunction MaxContentmax-content.
Methods (8)
public GridSizingFunction(GridSizingKind Kind, float Value, bool IsFitContentPercent = false)One half of a track sizing function — a minimum or a maximum.
public static GridSizingFunction Points(float points)An absolute length.
public static GridSizingFunction Percent(float percent)A fraction of the container's content box on this axis.
public static GridSizingFunction Flex(float fraction)A share of the leftover space.
public bool IsFixed(float containingSize)Whether this function is a fixed length — one that needs no content to resolve.
public bool IsIntrinsic(float containingSize)Whether this function is content-based, per CSS Grid §12's "intrinsic" classes.
public float Resolve(float containingSize)Resolves a fixed function to a number, or NaN.
public override string ToString()Returns the fully qualified type name of this instance.
Used by (8)
- GridBlindSpotTestsVixen.Ui.Layout.Tests
- GridSpecVixen.Ui.Layout.Tests
- GridTemplateAreasTestsVixen.Ui.Layout.Tests
- GridTrackListVixen.Ui.Layout
- GridTrackSizeVixen.Ui.Layout
- LayoutTreeVixen.Ui.Layout
- SafeAlignmentTestsVixen.Ui.Layout.Tests
- TaffyTrackListParserTestsVixen.Ui.Layout.Tests