---
title: "alignment(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tablecolumncontent/alignment(_:)"
---

# alignment(_:)

Sets the alignment of the column, applying to both its column header label and the row view content for that column.

## Declaration

```swift
@MainActor @preconcurrency func alignment(_ alignment: TableColumnAlignment) -> some TableColumnContent<Self.TableRowValue, Self.TableColumnSortComparator>

```

## Parameters

- `alignment`: The alignment to apply to the column.

## See Also

### Configuring the content

- [customizationID(_:)](swiftui/tablecolumncontent/customizationid(_:).md)
- [defaultVisibility(_:)](swiftui/tablecolumncontent/defaultvisibility(_:).md)
- [disabledCustomizationBehavior(_:)](swiftui/tablecolumncontent/disabledcustomizationbehavior(_:).md)
