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

# TVTextElement

The textual content for the DOM element.

```
class TVTextElement
```

## Topics

### Creating Attributed Strings

[`makeAttributedString(font:)`](/documentation/TVMLKit/TVTextElement/makeAttributedString(font:))

Provides an attributed string for a given font.

[`makeAttributedString(font:foregroundColor:textAlignment:)`](/documentation/TVMLKit/TVTextElement/makeAttributedString(font:foregroundColor:textAlignment:))

Convenience method for configuring an attributed string given the specified attributes.

### Inspecting Text Elements

[`attributedString`](/documentation/TVMLKit/TVTextElement/attributedString)

The text for an element.

[`textStyle`](/documentation/TVMLKit/TVTextElement/textStyle)

The style applied to the text of the element.

[`TVTextElementStyle`](/documentation/TVMLKit/TVTextElementStyle)

The style applied to the text inside of an element.



---

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)