<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/tv-text-max-lines",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "tv-text-max-lines"
}
-->

# tv-text-max-lines

Specifies the maximum number of lines of text in an element.

## Overview

Here’s an example that shows a text element with a maximum of three lines of text.

```xml
<text style="tv-text-max-lines:3">Maximum of 3 lines</text>
```

### Values for tv-text-max-lines

- Integer: The maximum number of lines to be displayed in an element.

### Elements that Use tv-text-max-lines

- [description](/documentation/TVML/description)
- [subtitle](/documentation/TVML/subtitle)
- [text](/documentation/TVML/text)
- [title](/documentation/TVML/title)

---

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)