Skip to content

BoxContainerAlignmentMode

Eduard Gushchin edited this page Jul 1, 2026 · 3 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.BoxContainerAlignmentMode
Namespace Electron2D
Kind enum
Category UI and Text

Overview

Describes how a Electron2D.BoxContainer positions children when free space remains.

Syntax

public enum Electron2D.BoxContainerAlignmentMode : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: BoxContainer.AlignmentMode

Begin, center and end alignment values for unexpanded space in a box container.

Remarks

Alignment is applied only after non-expanded children, separation and expanded slots have been measured.

Since

This enum is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.BoxContainer.Alignment

Members

Member Kind Summary
Begin Enum value Places children at the beginning of the box axis.
Center Enum value Centers children along the box axis.
End Enum value Places children at the end of the box axis.

Member Details

Begin

Kind: Enum value

public const Electron2D.BoxContainerAlignmentMode Begin

Summary

Places children at the beginning of the box axis.

Remarks

This is the default alignment for a Electron2D.BoxContainer.

Since

This enum value is available since Electron2D 0.1.0 Preview.

Center

Kind: Enum value

public const Electron2D.BoxContainerAlignmentMode Center

Summary

Centers children along the box axis.

Remarks

Free space is split before and after the children.

Since

This enum value is available since Electron2D 0.1.0 Preview.

End

Kind: Enum value

public const Electron2D.BoxContainerAlignmentMode End

Summary

Places children at the end of the box axis.

Remarks

Free space is placed before the first child.

Since

This enum value is available since Electron2D 0.1.0 Preview.

Clone this wiki locally