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

ConstructorsDescription

FormattedLabel()

Define a FormattedLabel widget. This widget accept Span widgets as children

Properties

PropertiesDescription

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