Preparing search index...

    Enum specifying text or widget alignment.

        const Ui = await import('LensStudio:Ui');
    const layout = new Ui.BoxLayout();
    const root = null as unknown as import('LensStudio:Ui').Widget;
    const label = new Ui.Label(root);
    label.text = 'Centered label';
    layout.addWidgetWithStretch(label, 1, Ui.Alignment.AlignCenter);
    const rightLabel = new Ui.Label(root);
    rightLabel.text = 'Right-aligned';
    layout.addWidgetWithStretch(rightLabel, 0, Ui.Alignment.AlignRight);
    console.log(`Alignment.AlignCenter=${Ui.Alignment.AlignCenter}, AlignRight=${Ui.Alignment.AlignRight}`);
    Index

    Enumeration Members

    AlignAbsolute: number

    Absolute positioning alignment.

    AlignBaseline: number

    Align to baseline.

    AlignBottom: number

    Align to the bottom.

    AlignCenter: number

    Align to center.

    AlignHCenter: number

    Align horizontally to center.

    AlignHorizontal_Mask: number

    Mask for horizontal alignment flags.

    AlignJustify: number

    Justify alignment.

    AlignLeading: number

    Align to the leading edge (start).

    AlignLeft: number

    Align to the left.

    AlignRight: number

    Align to the right.

    AlignTop: number

    Align to the top.

    AlignTrailing: number

    Align to the trailing edge (end).

    AlignVCenter: number

    Align vertically to center.

    AlignVertical_Mask: number

    Mask for vertical alignment flags.

    Default: number

    Default alignment value.