1 instantiation of Span
Microsoft.Maui.Controls (1)
FormattedString.cs (1)
34 public static implicit operator FormattedString(string text) => new FormattedString { Spans = { new Span { Text = text } } };
17 references to Span
Microsoft.Maui.Controls (17)
FormattedString.cs (9)
30 public IList<Span> Spans => _spans; 45 var bo = item as Span; 60 var bo = item as Span; 79 class SpanCollection : ObservableCollection<Span> 81 protected override void InsertItem(int index, Span item) => base.InsertItem(index, item ?? throw new ArgumentNullException(nameof(item))); 82 protected override void SetItem(int index, Span item) => base.SetItem(index, item ?? throw new ArgumentNullException(nameof(item))); 86 var removed = new List<Span>(this);
Label\Label.cs (3)
283 foreach (Span span in spans) 299 foreach (Span span in spans) 400 Span span = FormattedText.Spans[i];
Span.cs (5)
21 public static readonly BindableProperty StyleProperty = BindableProperty.Create(nameof(Style), typeof(Style), typeof(Span), default(Style), 22 propertyChanged: (bindable, oldvalue, newvalue) => ((Span)bindable)._mergedStyle.Style = (Style)newvalue, defaultBindingMode: BindingMode.OneWay); 39 = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(Span), default(Color), defaultBindingMode: BindingMode.OneWay); 81 = BindableProperty.Create(nameof(Text), typeof(string), typeof(Span), "", defaultBindingMode: BindingMode.OneWay); 190 throw new InvalidOperationException($"{gesture.GetType().Name} is not supported on a {nameof(Span)}");