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 } } };
19 references to Spans
Microsoft.Maui.Controls (18)
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)
63
label.RemoveSpans(formattedString.
Spans
);
77
label.SetupSpans(formattedString.
Spans
);
386
=> (FormattedText?.
Spans
?.Count ?? 0) > 0;
391
if (FormattedText?.
Spans
== null || FormattedText?.
Spans
.Count == 0)
395
for (int i = 0; i < FormattedText.
Spans
.Count; i++)
397
Span span = FormattedText.
Spans
[i];
Platform\iOS\Extensions\FormattedStringExtensions.cs (5)
46
for (int i = 0; i < formattedString.
Spans
.Count; i++)
48
Span span = formattedString.
Spans
[i];
146
if (element?.FormattedText?.
Spans
is null
147
|| element.FormattedText.
Spans
.Count == 0)
172
var spans = element.FormattedText.
Spans
;
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Renderers\LabelRenderer.cs (1)
43
foreach (var span in formattedString.
Spans
)