@nativescript-community/text
Nativescript Doc
Preparing search index...
LightFormattedString
Class LightFormattedString
Hierarchy
Observable
LightFormattedString
Index
Constructors
constructor
Properties
background
Color
color
font
Family
font
Size
font
Style
font
Variation
Settings
font
Weight
parent
text
Alignment
text
Decoration
vertical
Text
Alignment
Accessors
spans
style
is
Formatted
String
Methods
_
add
Array
From
Builder
_
add
Child
From
Builder
to
Native
String
to
String
Constructors
constructor
new
LightFormattedString
()
:
LightFormattedString
Returns
LightFormattedString
Properties
background
Color
backgroundColor
:
Color
color
color
:
Color
font
Family
fontFamily
:
string
font
Size
fontSize
:
number
font
Style
fontStyle
:
FontStyleType
font
Variation
Settings
fontVariationSettings
:
FontVariationSettingsType
[]
font
Weight
fontWeight
:
FontWeightType
parent
parent
:
View
text
Alignment
textAlignment
:
TextAlignmentType
text
Decoration
textDecoration
:
TextDecorationType
vertical
Text
Alignment
verticalTextAlignment
:
VerticalAlignmentTextType
Accessors
spans
get
spans
()
:
ObservableArray
<
Span
>
Returns
ObservableArray
<
Span
>
set
spans
(
value
:
ObservableArray
<
Span
>
)
:
void
Parameters
value
:
ObservableArray
<
Span
>
Returns
void
style
get
style
()
:
this
Returns
this
Static
is
Formatted
String
get
isFormattedString
()
:
boolean
Returns
boolean
Methods
_
add
Array
From
Builder
_addArrayFromBuilder
(
name
:
string
,
value
:
any
[]
)
:
void
Parameters
name
:
string
value
:
any
[]
Returns
void
_
add
Child
From
Builder
_addChildFromBuilder
(
name
:
string
,
value
:
any
)
:
void
Parameters
name
:
string
value
:
any
Returns
void
to
Native
String
toNativeString
()
:
void
Returns
void
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
Constructors
constructor
Properties
background
Color
color
font
Family
font
Size
font
Style
font
Variation
Settings
font
Weight
parent
text
Alignment
text
Decoration
vertical
Text
Alignment
Accessors
spans
style
is
Formatted
String
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.