---
title: alignmentMode
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/catextlayer/alignmentmode
---

# alignmentMode

Determines how individual lines of text are horizontally aligned within the receiver’s bounds.

## Declaration

```swift
var alignmentMode: CATextLayerAlignmentMode { get set }
```

## Discussion

Discussion The possible values are described in Horizontal alignment modes. Defaults to natural.

## See Also

### Text Alignment and Truncation

- [isWrapped](quartzcore/catextlayer/iswrapped.md)
- [truncationMode](quartzcore/catextlayer/truncationmode.md)
