<div class='sourceset sourceset-android'>Android</div>

```kotlin
@LayoutScopeMarker
public interface SpatialColumnScope
```

Scope for customizing the layout of children within a [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn).

## Functions

<h2 id="weight-fill">weight</h2>

```kotlin
public fun SubspaceModifier.weight(
        @FloatRange(from = 0.0, fromInclusive = false) weight: Float,
        fill: Boolean = true,
    ): SubspaceModifier
```

Sizes the element's height proportionally to its [weight](/jetpack-compose/androidx.wear.compose/compose-foundation/functions/weight) relative to other weighted sibling
elements in the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn).

The parent divides the remaining vertical space after measuring unweighted children and
distributes it according to the weights.

If [fill](/jetpack-compose/androidx.compose.ui/ui-graphics/objects/Fill) is true, the element will occupy its entire allocated height. Otherwise, it can be
smaller, potentially making the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn) smaller as unused space isn't redistributed.

#### Parameters

| | |
| --- | --- |
| weight | The proportional height for this element relative to other weighted siblings. Must be positive. |
| fill | Whether the element should fill its entire allocated height. |

#### Returns

| | |
| --- | --- |
|  | The modified [SubspaceModifier](/jetpack-compose/androidx.xr.compose/compose/interfaces/SubspaceModifier). |

<hr class="docs-overload-divider">

<h2 id="align-alignment">align</h2>

```kotlin
public fun SubspaceModifier.align(alignment: SpatialAlignment.Horizontal): SubspaceModifier
```

Aligns the element within the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn) horizontally. This will override the horizontal
alignment value passed to the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn).

#### Parameters

| | |
| --- | --- |
| alignment | The horizontal alignment to apply. |

#### Returns

| | |
| --- | --- |
|  | The modified [SubspaceModifier](/jetpack-compose/androidx.xr.compose/compose/interfaces/SubspaceModifier). |

<hr class="docs-overload-divider">

<h2 id="align-alignment-2">align</h2>

```kotlin
public fun SubspaceModifier.align(alignment: SpatialAlignment.Depth): SubspaceModifier
```

Aligns the element within the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn) depthwise. This will override the depth
alignment value passed to the [SpatialColumn](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialColumn).

#### Parameters

| | |
| --- | --- |
| alignment | The depth alignment to use for the element. |

#### Returns

| | |
| --- | --- |
|  | The modified [SubspaceModifier](/jetpack-compose/androidx.xr.compose/compose/interfaces/SubspaceModifier). |