githubEdit

FormattedLabel

Inheritance: Elementarrow-up-right -> NavigableElementarrow-up-right -> VisualElementarrow-up-right -> Viewarrow-up-right -> Labelarrow-up-right Xamarin.Forms documentation: FormattedLabel APIarrow-up-right / Guidearrow-up-right

For details on how the control actually works, please refer to the Xamarin.Forms documentationarrow-up-right.

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 #arrow-up-right

let formattedLabelRef = ViewRef<Label>()

(FormattedLabel() {
  Span("Hello")
})
    .reference(labelRef)

Last updated