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
- _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
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
inherited from
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