32 references to TextDecorations
Microsoft.Maui (1)
Core\ILabel.cs (1)
12 TextDecorations TextDecorations { get; }
Microsoft.Maui.Controls (28)
DecorableTextElement.cs (20)
10 /// <summary>Bindable property for <see cref="TextDecorations"/>.</summary> 11 public static readonly BindableProperty TextDecorationsProperty = BindableProperty.Create(nameof(IDecorableTextElement.TextDecorations), typeof(TextDecorations), typeof(IDecorableTextElement), TextDecorations.None); 27 TextDecorations result = TextDecorations.None; 29 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(TextDecorations))); 38 if (Enum.TryParse(item.Trim(), true, out TextDecorations textDecorations)) 41 result |= TextDecorations.Strikethrough; 43 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", item, typeof(TextDecorations))); 51 if (value is not TextDecorations td) 53 if (td == TextDecorations.None) 54 return nameof(TextDecorations.None); 55 if (td == TextDecorations.Underline) 56 return nameof(TextDecorations.Underline); 57 if (td == TextDecorations.Strikethrough) 58 return nameof(TextDecorations.Strikethrough); 59 if (td == (TextDecorations.Underline & TextDecorations.Strikethrough)) 60 return $"{nameof(TextDecorations.Underline)}, {nameof(TextDecorations.Strikethrough)}";
IDecorableTextElement.cs (1)
10 TextDecorations TextDecorations { get; set; }
Label\Label.cs (2)
187 public TextDecorations TextDecorations 189 get { return (TextDecorations)GetValue(TextDecorationsProperty); }
Platform\iOS\Extensions\FormattedStringExtensions.cs (3)
102 var textDecorations = span.TextDecorations; 103 hasUnderline = (textDecorations & TextDecorations.Underline) != 0; 104 hasStrikethrough = (textDecorations & TextDecorations.Strikethrough) != 0;
Span.cs (2)
134 public TextDecorations TextDecorations 136 get { return (TextDecorations)GetValue(TextDecorationsProperty); }
Microsoft.Maui.Controls.Compatibility (3)
iOS\Renderers\LabelRenderer.cs (3)
275 var textDecorations = Element.TextDecorations; 288 if ((textDecorations & TextDecorations.Strikethrough) == 0) 293 if ((textDecorations & TextDecorations.Underline) == 0)