Span

Inheritance: Element }) Xamarin.Forms documentation: Span API

For details on how the control actually works, please refer to the Xamarin.Forms documentation.

Constructors

Properties

Usages

Span("Hello, Word!")
    .backgroundColor(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor())  
    .characterSpacing(2.)   
    .font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
    .lineHeight(1.5) 
    .style(Xamarin.Forms.Style())  
    .textColor(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor()) 
    .textDecorations(TextDecorations.Underlined) 
    .textTransform(TextTransform.Lowercase) 
    .gestureRecognizers() {
      TapGestureRecognizer(...)
      SwipeGestureRecognizer(...)
    }

Get access to the underlying Xamarin.Forms.Span

let spanRef = ViewRef<Span>()

Span("Hello, World!")
    .reference(spanRef) 

Last updated