logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct ColumnSpec

    One table column's sizing rule: either a fixed initial width, or a flex weight sharing whatever width the fixed columns leave behind. Either way the column never shrinks below MinimumWidth.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Shared.Layout
    Assembly: Serenity.Shared.dll
    Syntax
    public readonly struct ColumnSpec

    Fields

    FixedWidth

    The width a fixed column starts at; meaningless when IsFlex is true.

    Declaration
    public readonly float FixedWidth
    Field Value
    Type Description
    float

    FlexWeight

    This column's share of the leftover width relative to the other flex columns; meaningless when IsFlex is false.

    Declaration
    public readonly float FlexWeight
    Field Value
    Type Description
    float

    IsFlex

    Whether this column shares leftover width instead of starting at a fixed width.

    Declaration
    public readonly bool IsFlex
    Field Value
    Type Description
    bool

    MinimumWidth

    The narrowest this column is ever allowed to become, from an initial solve or a drag.

    Declaration
    public readonly float MinimumWidth
    Field Value
    Type Description
    float

    Methods

    Fixed(float, float)

    A column that starts at fixedWidth and never shrinks below minimumWidth.

    Declaration
    public static ColumnSpec Fixed(float fixedWidth, float minimumWidth)
    Parameters
    Type Name Description
    float fixedWidth
    float minimumWidth
    Returns
    Type Description
    ColumnSpec

    Flex(float, float)

    A column that shares the leftover width by weight, never below minimumWidth.

    Declaration
    public static ColumnSpec Flex(float weight, float minimumWidth)
    Parameters
    Type Name Description
    float weight
    float minimumWidth
    Returns
    Type Description
    ColumnSpec
    In this article
    © 2026 Serenity. All Rights Reserved