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 } } };
22 references to Span
Microsoft.Maui.Controls (21)
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)
280
foreach (
Span
span in spans)
296
foreach (
Span
span in spans)
397
Span
span = FormattedText.Spans[i];
Platform\iOS\Extensions\FormattedStringExtensions.cs (4)
48
Span
span = formattedString.Spans[i];
60
this
Span
span,
100
if (span.IsSet(
Span
.TextDecorationsProperty))
191
foreach (
var
span in spans)
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
)}");
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Renderers\LabelRenderer.cs (1)
43
foreach (
var
span in formattedString.Spans)