logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum LayoutAlignment

    Alignment of children within a layout container. Used both for Justify (distribution along the main axis, CSS justify-content) and Align (positioning along the cross axis, CSS align-items).

    Namespace: Serenity.Ui.Domain.Types
    Assembly: Serenity.Ui.Domain.dll
    Syntax
    public enum LayoutAlignment

    Fields

    Name Description
    CENTER

    Center children on the axis (CSS center).

    END

    Pack children towards the end of the axis (CSS flex-end).

    START

    Pack children towards the start of the axis (CSS flex-start).

    STRETCH

    Stretch children to fill the axis (CSS stretch). Cross axis only.

    In this article
    © 2026 Serenity. All Rights Reserved