πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement
FormattedString
A class used to create a formatted (rich text) string.

Summary ​

Constructors

constructor

Properties

backgroundColor
color
fontFamily
fontSize
fontStyle
fontWeight
iosAccessibilityAdjustsFontSize
iosAccessibilityMaxFontScale
iosAccessibilityMinFontScale
spans
textDecoration
69 properties inherited from ViewBase
Click to expand
_automaticallyAdjustsScrollViewInsets
_context
_cssState
_defaultPaddingBottom
_defaultPaddingLeft
_defaultPaddingRight
_defaultPaddingTop
_domId
_ignoreFlexMinWidthHeightReset
_isAddedToNativeVisualTree
_isPaddingRelative
_isStyleScopeHost
_oldBottom
_oldLeft
_oldRight
_oldTop
_styleScope
_suspendNativeUpdatesCount
alignSelf
bindingContext
className
col
colSpan
column
columnSpan
createdEvent
cssClasses
cssPseudoClasses
disposeNativeViewEvent
dock
domNode
effectiveBorderBottomWidth
effectiveBorderLeftWidth
effectiveBorderRightWidth
effectiveBorderTopWidth
effectiveHeight
effectiveLeft
effectiveMarginBottom
effectiveMarginLeft
effectiveMarginRight
effectiveMarginTop
effectiveMinHeight
effectiveMinWidth
effectivePaddingBottom
effectivePaddingLeft
effectivePaddingRight
effectivePaddingTop
effectiveTop
effectiveWidth
flexGrow
flexShrink
flexWrapBefore
id
isCollapsed
left
loadedEvent
nativeViewProtected
order
parent
propertyChangeEvent
recycleNativeView
reusable
row
rowSpan
sharedTransitionIgnore
sharedTransitionTag
top
unloadedEvent
viewController

Methods

toString
64 methods inherited from ViewBase
Click to expand
_addView
_addViewCore
_addViewToNativeVisualTree
_applyXmlAttribute
_batchUpdate
_childIndexToNativeChildIndex
_createPropertyChangeData
_dialogClosed
_emit
_goToVisualState
_inheritStyleScope
_layoutParent
_onRootViewReset
_parentChanged
_removeView
_removeViewCore
_removeViewFromNativeVisualTree
_resumeNativeUpdates
_setupAsRootView
_setupUI
_shouldDelayLayout
_suspendNativeUpdates
_tearDownUI
addEventListener
addEventListener
addPseudoClass
bind
callLoaded
callUnloaded
closeModal
createNativeView
deletePseudoClass
destroyNode
disposeNativeView
eachChild
ensureDomNode
get
getViewByDomId
getViewById
hasListeners
initNativeView
loadView
notify
notifyPropertyChange
off
off
on
on
once
once
onLoaded
onResumeNativeUpdates
onUnloaded
removeEventListener
removeEventListener
requestLayout
resetNativeView
set
setInlineStyle
setNativeView
setProperty
showModal
unbind
unloadView

Constructors ​

constructor ​

new FormattedString(): 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 ​

fontFamily: string
Gets or sets the font family which will be used for all spans that doesn't have a specific value.

fontSize ​

fontSize: number
Gets or sets the font size which will be used for all spans that doesn't have a specific value.

fontStyle ​

fontStyle: FontStyleType
Gets or sets the font style which will be used for all spans that doesn't have a specific value.

fontWeight ​

fontWeight: FontWeightType
Gets or sets the font weight which will be used for all spans that doesn't have a specific value.

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.

spans ​

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 ​

toString(): string
A human readable representation of the formatted string.
Returns string
Previous
Font

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /