FormattedLabel
Inheritance: Element -> NavigableElement -> VisualElement -> View -> Label Xamarin.Forms documentation: FormattedLabel API / Guide
For details on how the control actually works, please refer to the Xamarin.Forms documentation.
Constructors
Constructors
Description
FormattedLabel()
Define a FormattedLabel widget. This widget accept Span widgets as children
Properties
Properties
Description
reference(value: ViewRef<Label>)
Sets a ViewRef
instance to retrieve the Xamarin.Forms.Label
instance associated to this widget
Usages
(FormattedLabel() {
Span("Hello")
.font(size = 20., attributes = FontAttributes.Bold)
Span("World")
.textColor(Color.Red.ToFabColor())
})
.font(fontFamily = "Consolas")
Get access to the underlying Xamarin.Forms.FormattedLabel #
let formattedLabelRef = ViewRef<Label>()
(FormattedLabel() {
Span("Hello")
})
.reference(labelRef)
Last updated