---
title: DocumentObservation.Container.Text.Alignment.center
framework: vision
role: symbol
role_heading: Case
path: vision/documentobservation/container/text-swift.struct/alignment/center
---

# DocumentObservation.Container.Text.Alignment.center

Text aligns horizontally to the center of the container.

## Declaration

```swift
case center
```

## See Also

### Getting the alignment

- [DocumentObservation.Container.Text.Alignment.leading](vision/documentobservation/container/text-swift.struct/alignment/leading.md)
- [DocumentObservation.Container.Text.Alignment.trailing](vision/documentobservation/container/text-swift.struct/alignment/trailing.md)
