---
title: AttributeScopes.CoreTextAttributes.TextAlignmentAttribute
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/attributescopes/coretextattributes/textalignmentattribute
---

# AttributeScopes.CoreTextAttributes.TextAlignmentAttribute

An attribute defining the explicit horizontal alignment of a paragraph.

## Declaration

```swift
@frozen enum TextAlignmentAttribute
```

## Overview

Overview important: Note that this attribute is not for usage with CoreText APIs directly, but exposed to give other frameworks common vocabulary to express the text alignment concept as defined by CoreText in Swift. For more details, see AttributeScopes.CoreTextAttributes.

## Relationships

### Conforms To

- [AttributedStringKey](foundation/attributedstringkey.md)
- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [DecodableAttributedStringKey](foundation/decodableattributedstringkey.md)
- [EncodableAttributedStringKey](foundation/encodableattributedstringkey.md)
- [SendableMetatype](swift/sendablemetatype.md)
