@nativescript-community/text
Nativescript Doc
Preparing search index...
ObjectSpans
Interface ObjectSpans
interface
ObjectSpans
{
backgroundColor
?:
Color
;
color
?:
Color
;
fontFamily
?:
string
;
fontSize
?:
number
;
fontStyle
?:
FontStyleType
;
fontVariationSettings
?:
FontVariationSettingsType
[]
;
fontWeight
?:
FontWeightType
;
parent
?:
View
;
spans
:
any
;
style
?:
LightFormattedString
;
textAlignment
?:
TextAlignmentType
;
textDecoration
?:
TextDecorationType
;
verticalTextAlignment
?:
VerticalAlignmentTextType
;
_addArrayFromBuilder
?
(
name
:
string
,
value
:
any
[]
)
:
void
;
_addChildFromBuilder
?
(
name
:
string
,
value
:
any
)
:
void
;
toNativeString
?
()
:
void
;
toString
?
()
:
string
;
}
Hierarchy
Partial
<
Pick
<
LightFormattedString
,
keyof
LightFormattedString
>
>
ObjectSpans
Index
Properties
background
Color?
color?
font
Family?
font
Size?
font
Style?
font
Variation
Settings?
font
Weight?
parent?
spans
style?
text
Alignment?
text
Decoration?
vertical
Text
Alignment?
Methods
_
add
Array
From
Builder?
_
add
Child
From
Builder?
to
Native
String?
to
String?
Properties
Optional
background
Color
backgroundColor
?:
Color
Optional
color
color
?:
Color
Optional
font
Family
fontFamily
?:
string
Optional
font
Size
fontSize
?:
number
Optional
font
Style
fontStyle
?:
FontStyleType
Optional
font
Variation
Settings
fontVariationSettings
?:
FontVariationSettingsType
[]
Optional
font
Weight
fontWeight
?:
FontWeightType
Optional
parent
parent
?:
View
spans
spans
:
any
Optional
style
style
?:
LightFormattedString
Optional
text
Alignment
textAlignment
?:
TextAlignmentType
Optional
text
Decoration
textDecoration
?:
TextDecorationType
Optional
vertical
Text
Alignment
verticalTextAlignment
?:
VerticalAlignmentTextType
Methods
Optional
_
add
Array
From
Builder
_addArrayFromBuilder
?
(
name
:
string
,
value
:
any
[]
)
:
void
Parameters
name
:
string
value
:
any
[]
Returns
void
Optional
_
add
Child
From
Builder
_addChildFromBuilder
?
(
name
:
string
,
value
:
any
)
:
void
Parameters
name
:
string
value
:
any
Returns
void
Optional
to
Native
String
toNativeString
?
()
:
void
Returns
void
Optional
to
String
toString
?
()
:
string
Returns a string representation of an object.
Returns
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
background
Color
color
font
Family
font
Size
font
Style
font
Variation
Settings
font
Weight
parent
spans
style
text
Alignment
text
Decoration
vertical
Text
Alignment
Methods
_
add
Array
From
Builder
_
add
Child
From
Builder
to
Native
String
to
String
Nativescript Doc
@nativescript-community/text
Loading...
Returns a string representation of an object.