Classes
FormattedString
FormattedString
A class used to create a formatted (rich text) string.
Summary
Constructors
Properties
- backgroundColor
- color
- fontFamily
- fontSize
- fontStyle
- fontWeight
- iosAccessibilityAdjustsFontSize
- iosAccessibilityMaxFontScale
- iosAccessibilityMinFontScale
- spans
- textDecoration
69 properties inherited from ViewBase
Click to expand
Constructors
constructor
new FormattedString(): FormattedString
Returns FormattedString
Properties
backgroundColor
backgroundColor: Color
Gets or sets the font background color which will be used for all spans that doesn't have a specific value.
color
color: Color
Gets or sets the font foreground color which will be used for all spans that doesn't have a specific value.
fontFamily
Gets or sets the font family which will be used for all spans that doesn't have a specific value.
fontSize
Gets or sets the font size which will be used for all spans that doesn't have a specific value.
fontStyle
Gets or sets the font style which will be used for all spans that doesn't have a specific value.
fontWeight
Gets or sets the font weight which will be used for all spans that doesn't have a specific value.
iosAccessibilityAdjustsFontSize
Defines whether accessibility font scale should affect font size.
iosAccessibilityMaxFontScale
Gets or sets the maximum accessibility font scale.
iosAccessibilityMinFontScale
Gets or sets the minimum accessibility font scale.
spans
spans: ObservableArray<Span>
An observable collection of Span objects used to define common text properties.
textDecoration
textDecoration: TextDecorationType
Gets or sets text decorations which will be used for all spans that doesn't have a specific value.
Methods
toString
A human readable representation of the formatted string.
Returns string