TextView

Read-only rich text that can be selected, with tappable Link runs.
public class TextView : Control

Properties

FontDesign

The base font design: system, rounded, serif or monospaced.

Type: FontDesign

public FontDesign FontDesign { get; set; }

FontSize

Explicit font size in points, overriding TextStyle.

NaN falls back to the text style, or 17 points without one.

Type: double

public double FontSize { get; set; }

FontWeight

The base font weight the runs build on.

Type: FontWeight

public FontWeight FontWeight { get; set; }

IsSelectable

Whether the text can be selected and copied.

A Link run forces selection on, since UIKit only makes text items tappable while the view is selectable.

Type: Bindable<bool>

public Bindable<bool> IsSelectable { get; set; }

LetterSpacing

Extra points between characters (negative tightens).

Type: double

public double LetterSpacing { get; set; }

LineSpacing

Extra points between lines.

Type: double

public double LineSpacing { get; set; }

LinkColor

Color the links paint in, or null for the app tint.

Type: Color?

public Color? LinkColor { get; set; }

MaxLines

Maximum number of lines, or 0 for unlimited (wraps freely).

Type: int

public int MaxLines { get; set; }

Spans

The styled runs to display; a plain string becomes an unstyled run, a Link a tappable one.

Changes replace the attributed text without animation.

Live when the list is an ObservableCollection.

Type: BindableList<Span>

public BindableList<Span> Spans { get; set; }

TextAlignment

Horizontal alignment of the text.

Type: TextAlignment

public TextAlignment TextAlignment { get; set; }

TextColor

Base text color, or null for the system label color.

Type: Bindable<Color?>

public Bindable<Color?> TextColor { get; set; }

TextStyle

The step of the native type hierarchy the text follows, or null to size it by FontSize.

Type: TextStyle?

public TextStyle? TextStyle { get; set; }