---
title: TVTextElement
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvtextelement
---

# TVTextElement

The textual content for the DOM element.

## Declaration

```swift
class TVTextElement
```

## Topics

### Creating Attributed Strings

- [makeAttributedString(font:)](tvmlkit/tvtextelement/makeattributedstring(font:).md)
- [makeAttributedString(font:foregroundColor:textAlignment:)](tvmlkit/tvtextelement/makeattributedstring(font:foregroundcolor:textalignment:).md)

### Inspecting Text Elements

- [attributedString](tvmlkit/tvtextelement/attributedstring.md)
- [textStyle](tvmlkit/tvtextelement/textstyle.md)
- [TVTextElementStyle](tvmlkit/tvtextelementstyle.md)

## Relationships

### Inherits From

- [TVViewElement](tvmlkit/tvviewelement.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom Elements

- [TVElementFactory](tvmlkit/tvelementfactory.md)
- [TVImageElement](tvmlkit/tvimageelement.md)
- [Creating TVML Elements](tvmlkit/creating-tvml-elements.md)
