Span

open class Span : StyledElement

Represents a span of styled text within a TTML document.

Constructors

Link copied to clipboard
constructor()
Default constructor.
constructor(element: StyledElement)
Initializes a Span given the styling attributes provided in element.
constructor(text: String)
Initializes a Span with the given text.

Properties

Link copied to clipboard
open var text: String

Functions

Link copied to clipboard
The background color string.
Link copied to clipboard
open fun getColor(): String
The color string.
Link copied to clipboard
open fun getFontFamily(): String
Link copied to clipboard
open fun getFontSize(): Length
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getID(): String
The identifier of the element.
Link copied to clipboard
open fun getStyleName(): String
The style name string.
Link copied to clipboard
Link copied to clipboard
open fun setBackgroundColor(backgroundColor: String)
The background color string.
Link copied to clipboard
open fun setColor(color: String)
The color string.
Link copied to clipboard
open fun setFontFamily(fontFamily: String)
Link copied to clipboard
open fun setFontSize(fontSize: Length)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setID(id: String)
The identifier of the element.
Link copied to clipboard
open fun setStyleName(styleName: String)
The style name string.
Link copied to clipboard
Link copied to clipboard