Class

TVTextElement

The textual content for the DOM element.

Declaration

@interface TVTextElement : TVViewElement

Overview

Topics

Creating Attributed Strings

- attributedStringWithFont:

Provides an attributed string for a given font.

- attributedStringWithFont:foregroundColor:textAlignment:

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

Inspecting Text Elements

attributedText

The text for an element.

textStyle

The style applied to the text of the element.

TVTextElementStyle

The style applied to the text inside of an element.

Relationships

Inherits From

See Also

Custom Elements

TVElementFactory

An object used to register new elements to extend the Apple TV Markup Language (TVML).

TVImageElement

A representation of a read-only DOM node containing the attributes that describe an image element.

Creating TVML Elements

Avoid rewriting complex and often used elements by creating a simplified custom element.