<!--
{
  "availability" : [
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVViewElementStyle/alignment",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVViewElementStyle(py)alignment"
  },
  "title" : "alignment"
}
-->

# alignment

A value indicating how an item is aligned inside of an element.

```
var alignment: TVElementAlignment { get }
```

## Discussion

This property aligns an item inside of an element on the horizontal axis. For possible values, see [`TVElementContentAlignment`](/documentation/TVMLKit/TVElementContentAlignment).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)