8.8 released—CSS Media Query support, SF Symbols and much more...
Learn more
A class used to create a single part of formatted string with a common text properties.

Summary

Constructors

constructor

Properties

backgroundColor
color
fontFamily
fontSize
fontStyle
fontWeight
iosAccessibilityAdjustsFontSize
iosAccessibilityMaxFontScale
iosAccessibilityMinFontScale
linkTapEvent
tappable
text
textDecoration

Constructors

constructor

new Span(): Span

Properties

backgroundColor

backgroundColor: Color
Gets or sets the font background color of the span.

color

color: Color
Gets or sets the font foreground color of the span.

fontFamily

fontFamily: string
Gets or sets the font family of the span.

fontSize

fontSize: number
Gets or sets the font size of the span.

fontStyle

fontStyle: FontStyleType
Gets or sets the font style of the span.

fontWeight

fontWeight: FontWeightType
Gets or sets the font weight of the span.

iosAccessibilityAdjustsFontSize

iosAccessibilityAdjustsFontSize: boolean
Defines whether accessibility font scale should affect font size.

iosAccessibilityMaxFontScale

iosAccessibilityMaxFontScale: number
Gets or sets the maximum accessibility font scale.

iosAccessibilityMinFontScale

iosAccessibilityMinFontScale: number
Gets or sets the minimum accessibility font scale.

tappable

Readonly
tappable: boolean
Gets if the span is tappable or not.

text

text: string
Gets or sets the text for the span.

textDecoration

textDecoration: TextDecorationType
Gets or sets text decorations for the span.

linkTapEvent

Static
linkTapEvent: string
String value used when hooking to linkTap event.
Previous
Slider