1 write to Spans
Microsoft.Maui.Controls (1)
FormattedString.cs (1)
34 public static implicit operator FormattedString(string text) => new FormattedString { Spans = { new Span { Text = text } } };
13 references to Spans
Microsoft.Maui.Controls (13)
FormattedString.cs (6)
25 for (int i = 0; i < Spans.Count; i++) 26 SetInheritedBindingContext(Spans[i], BindingContext); 37 public override string ToString() => string.Concat(Spans.Select(span => span.Text)); 71 OnPropertyChanged(nameof(Spans)); 75 void OnItemPropertyChanged(object sender, PropertyChangedEventArgs e) => OnPropertyChanged(nameof(Spans)); 77 void OnItemPropertyChanging(object sender, PropertyChangingEventArgs e) => OnPropertyChanging(nameof(Spans));
Label\Label.cs (7)
66 label.RemoveSpans(formattedString.Spans); 80 label.SetupSpans(formattedString.Spans); 389 => (FormattedText?.Spans?.Count ?? 0) > 0; 394 if (FormattedText?.Spans == null || FormattedText?.Spans.Count == 0) 398 for (int i = 0; i < FormattedText.Spans.Count; i++) 400 Span span = FormattedText.Spans[i];