49 instantiations of TextDecorationCollection
PresentationCore (7)
System\Windows\Generated\TextDecorationCollection.cs (2)
449
TextDecorationCollection collection = new
TextDecorationCollection
();
563
return new
TextDecorationCollection
();
System\Windows\TextDecorationCollectionConverter.cs (1)
94
TextDecorationCollection textDecorations = new
TextDecorationCollection
();
System\Windows\TextDecorations.cs (4)
27
underline = new
TextDecorationCollection
();
36
strikethrough = new
TextDecorationCollection
();
45
overLine = new
TextDecorationCollection
();
54
baseline = new
TextDecorationCollection
();
PresentationCore.Tests (30)
System\Windows\TextDecorationCollectionConverter.Tests.cs (30)
63
yield return new object[] { new
TextDecorationCollection
(), CultureInfo.InvariantCulture, string.Empty };
64
yield return new object[] { new
TextDecorationCollection
(), CultureInfo.InvariantCulture, " " };
65
yield return new object[] { new
TextDecorationCollection
(), CultureInfo.InvariantCulture, "None" };
66
yield return new object[] { new
TextDecorationCollection
(), CultureInfo.InvariantCulture, " None " };
68
yield return new object[] { new
TextDecorationCollection
(), new CultureInfo("ru-RU"), string.Empty };
69
yield return new object[] { new
TextDecorationCollection
(), new CultureInfo("no-NO"), " " };
70
yield return new object[] { new
TextDecorationCollection
(), new CultureInfo("no-NO"), "None" };
71
yield return new object[] { new
TextDecorationCollection
(), new CultureInfo("ru-RU"), " None " };
74
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0]]), new CultureInfo("no-NO"), "Strikethrough" };
75
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0]]), new CultureInfo("ru-RU"), "Strikethrough " };
77
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Underline[0], TextDecorations.Baseline[0]]),
80
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0], TextDecorations.Underline[0], TextDecorations.Baseline[0]]),
84
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0], TextDecorations.Underline[0],
138
yield return new object[] { new
TextDecorationCollection
(), string.Empty };
139
yield return new object[] { new
TextDecorationCollection
(), " " };
140
yield return new object[] { new
TextDecorationCollection
(), "None" };
141
yield return new object[] { new
TextDecorationCollection
(), " None " };
144
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0]]), "Strikethrough" };
145
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0]]), "Strikethrough " };
147
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Underline[0], TextDecorations.Baseline[0]]), "Underline, Baseline" };
148
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0], TextDecorations.Underline[0], TextDecorations.Baseline[0]]),
151
yield return new object[] { new
TextDecorationCollection
([TextDecorations.Strikethrough[0], TextDecorations.Underline[0],
216
yield return new object[] { new
TextDecorationCollection
(new TextDecoration[1] { TextDecorations.Underline[0] }),
217
new
TextDecorationCollection
(new TextDecoration[1] { TextDecorations.Underline[0] }),
221
yield return new object[] { new
TextDecorationCollection
(new TextDecoration[3] { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }),
222
new
TextDecorationCollection
(new TextDecoration[3] { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }),
228
yield return new object[] { new
TextDecorationCollection
(new TextDecoration[3] { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }),
232
yield return new object[] { new
TextDecorationCollection
(new TextDecoration[3] { TextDecorations.Underline[0], TextDecorations.OverLine[0], TextDecorations.Baseline[0] }),
253
yield return new object?[] { new
TextDecorationCollection
(), null };
263
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, new
TextDecorationCollection
(), typeof(TextDecorationCollection)));
PresentationFramework (11)
MS\Internal\Text\DynamicPropertyReader.cs (1)
92
textDecorations = new
TextDecorationCollection
();
MS\Internal\Text\TextSpanModifier.cs (1)
148
TextDecorationCollection result = new
TextDecorationCollection
();
System\Windows\Documents\SpellerHighlightLayer.cs (1)
177
TextDecorationCollection decorationCollection = new
TextDecorationCollection
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11108
DefaultConstructor = delegate () { return new System.Windows.
TextDecorationCollection
(); },
System\Windows\Markup\KnownTypes.cs (1)
1588
case KnownElements.TextDecorationCollection: o = new System.Windows.
TextDecorationCollection
(); break;
System\Windows\SystemFonts.cs (6)
75
_iconFontTextDecorations = new
TextDecorationCollection
();
156
_captionFontTextDecorations = new
TextDecorationCollection
();
236
_smallCaptionFontTextDecorations = new
TextDecorationCollection
();
313
_menuFontTextDecorations = new
TextDecorationCollection
();
394
_statusFontTextDecorations = new
TextDecorationCollection
();
487
_messageFontTextDecorations = new
TextDecorationCollection
();
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHostPropertyMap.cs (1)
142
TextDecorationCollection decorations = new
TextDecorationCollection
();
155 references to TextDecorationCollection
PresentationCore (46)
MS\Internal\TextFormatting\FullTextLine.cs (2)
51
private
TextDecorationCollection
_paragraphTextDecorations; // Paragraph-level text decorations (or null if none)
2594
internal
TextDecorationCollection
TextDecorations
MS\Internal\TextFormatting\GenericTextProperties.cs (3)
44
TextDecorationCollection
textDecorations,
141
public override
TextDecorationCollection
TextDecorations
209
private
TextDecorationCollection
_textDecorations;
MS\Internal\TextFormatting\LineServicesCallbacks.cs (3)
241
TextDecorationCollection
textDecorations,
1040
TextDecorationCollection
textDecorations = currentLine.TextDecorations;
1084
TextDecorationCollection
textDecorations,
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1465
TextDecorationCollection
textDecorations = textRun.Properties.TextDecorations;
MS\Internal\TextFormatting\TextProperties.cs (1)
148
internal
TextDecorationCollection
TextDecorations
System\Windows\Generated\TextDecorationCollection.cs (17)
36
public new
TextDecorationCollection
Clone()
38
return (
TextDecorationCollection
)base.Clone();
45
public new
TextDecorationCollection
CloneCurrentValue()
47
return (
TextDecorationCollection
)base.CloneCurrentValue();
443
internal static
TextDecorationCollection
Empty
449
TextDecorationCollection
collection = new TextDecorationCollection();
540
private static
TextDecorationCollection
s_empty;
570
TextDecorationCollection
sourceTextDecorationCollection = (
TextDecorationCollection
)source;
590
TextDecorationCollection
sourceTextDecorationCollection = (
TextDecorationCollection
)source;
610
TextDecorationCollection
sourceTextDecorationCollection = (
TextDecorationCollection
)source;
630
TextDecorationCollection
sourceTextDecorationCollection = (
TextDecorationCollection
)source;
732
internal Enumerator(
TextDecorationCollection
list)
842
private
TextDecorationCollection
_list;
System\Windows\Media\FormattedText.cs (2)
805
public void SetTextDecorations(
TextDecorationCollection
textDecorations)
816
public void SetTextDecorations(
TextDecorationCollection
textDecorations, int startIndex, int count)
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
72
public virtual
TextDecorationCollection
TextDecorations
System\Windows\Media\textformatting\TextRunProperties.cs (1)
52
public abstract
TextDecorationCollection
TextDecorations
System\Windows\TextDecorationCollection.cs (2)
39
internal bool ValueEquals(
TextDecorationCollection
textDecorations)
90
public bool TryRemove(IEnumerable<TextDecoration> textDecorations, out
TextDecorationCollection
result)
System\Windows\TextDecorationCollectionConverter.cs (5)
87
public static new
TextDecorationCollection
ConvertFromString(string text)
94
TextDecorationCollection
textDecorations = new TextDecorationCollection();
171
ConstructorInfo ci = typeof(
TextDecorationCollection
).GetConstructor(
265
private static readonly
TextDecorationCollection
[] PredefinedTextDecorations =
266
new
TextDecorationCollection
[] {
System\Windows\TextDecorations.cs (8)
66
public static
TextDecorationCollection
Underline
78
public static
TextDecorationCollection
Strikethrough
89
public static
TextDecorationCollection
OverLine
100
public static
TextDecorationCollection
Baseline
112
private static readonly
TextDecorationCollection
underline;
113
private static readonly
TextDecorationCollection
strikethrough;
114
private static readonly
TextDecorationCollection
overLine;
115
private static readonly
TextDecorationCollection
baseline;
PresentationCore.Tests (12)
System\Windows\TextDecorationCollectionConverter.Tests.cs (12)
15
[InlineData(false, typeof(
TextDecorationCollection
))]
29
[InlineData(false, typeof(
TextDecorationCollection
))]
41
public void ConvertFrom_ReturnsExpected(
TextDecorationCollection
expected, CultureInfo cultureInfo, string text)
45
TextDecorationCollection
? converted = (
TextDecorationCollection
?)converter.ConvertFrom(null, cultureInfo, text);
119
public void ConvertFromString_ReturnsExpected(
TextDecorationCollection
expected, string text)
121
TextDecorationCollection
converted = TextDecorationCollectionConverter.ConvertFromString(text);
162
TextDecorationCollection
? converted = TextDecorationCollectionConverter.ConvertFromString(null);
189
public void ConvertTo_ReturnsExpected(
TextDecorationCollection
expected, object? value, Type destinationType)
198
TextDecorationCollection
? actual = (
TextDecorationCollection
?)result.Invoke();
263
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(null, null, new TextDecorationCollection(), typeof(
TextDecorationCollection
)));
PresentationFramework (94)
MS\Internal\Documents\TextBoxLine.cs (2)
436
TextDecorationCollection
highlightDecorations = highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(SpellerHighlightLayer)) as
TextDecorationCollection
;
MS\Internal\PtsHost\LineBase.cs (2)
187
TextDecorationCollection
inlineTextDecorations = DynamicPropertyReader.GetTextDecorations(inline);
274
TextDecorationCollection
textDecorations = DynamicPropertyReader.GetTextDecorations(inline);
MS\Internal\Text\ComplexLine.cs (2)
421
TextDecorationCollection
inlineTextDecorations = DynamicPropertyReader.GetTextDecorations(inline);
499
TextDecorationCollection
textDecorations = DynamicPropertyReader.GetTextDecorations(inline);
MS\Internal\Text\DynamicPropertyReader.cs (5)
66
internal static
TextDecorationCollection
GetTextDecorationsForInlineObject(DependencyObject element,
TextDecorationCollection
textDecorations)
71
TextDecorationCollection
parentTextDecorations = null;
107
internal static
TextDecorationCollection
GetTextDecorations(DependencyObject element)
109
return GetCollectionValue(element, Inline.TextDecorationsProperty) as
TextDecorationCollection
;
MS\Internal\Text\LineProperties.cs (3)
76
public override
TextDecorationCollection
TextDecorations { get { return _defaultTextProperties.TextDecorations; } }
356
public override
TextDecorationCollection
TextDecorations { get { return _lp.TextDecorations; } }
437
public override
TextDecorationCollection
TextDecorations { get { return _lp.TextDecorations; } }
MS\Internal\Text\TextProperties.cs (7)
60
public override
TextDecorationCollection
TextDecorations { get { return _textDecorations; } }
157
TextDecorationCollection
highlightDecorations = GetHighlightTextDecorations(position);
183
internal TextProperties(TextProperties source,
TextDecorationCollection
textDecorations)
221
private static
TextDecorationCollection
GetHighlightTextDecorations(StaticTextPointer highlightPosition)
223
TextDecorationCollection
textDecorations = null;
234
textDecorations = highlights.GetHighlightValue(highlightPosition, LogicalDirection.Forward, typeof(SpellerHighlightLayer)) as
TextDecorationCollection
;
340
private
TextDecorationCollection
_textDecorations;
MS\Internal\Text\TextSpanModifier.cs (11)
22
private
TextDecorationCollection
_modifierDecorations;
32
public TextSpanModifier(int length,
TextDecorationCollection
textDecorations, Brush foregroundBrush)
44
public TextSpanModifier(int length,
TextDecorationCollection
textDecorations, Brush foregroundBrush, FlowDirection flowDirection)
98
TextDecorationCollection
mergedDecorations;
101
TextDecorationCollection
runDecorations = properties.TextDecorations;
146
private
TextDecorationCollection
CopyTextDecorations(
TextDecorationCollection
textDecorations, Brush brush)
148
TextDecorationCollection
result = new TextDecorationCollection();
174
TextDecorationCollection
_textDecorations;
178
TextDecorationCollection
textDecorations)
200
public override
TextDecorationCollection
TextDecorations
System\Windows\Controls\AccessText.cs (3)
272
new FreezableDefaultValueFactory(
TextDecorationCollection
.Empty),
279
public
TextDecorationCollection
TextDecorations
281
get { return (
TextDecorationCollection
) GetValue(TextDecorationsProperty); }
System\Windows\Controls\TextBlock.cs (3)
884
new FreezableDefaultValueFactory(
TextDecorationCollection
.Empty),
891
public
TextDecorationCollection
TextDecorations
893
get { return (
TextDecorationCollection
) GetValue(TextDecorationsProperty); }
System\Windows\Controls\TextBox.cs (3)
924
new FreezableDefaultValueFactory(
TextDecorationCollection
.Empty),
930
public
TextDecorationCollection
TextDecorations
932
get { return (
TextDecorationCollection
)GetValue(TextDecorationsProperty); }
System\Windows\Controls\TextRangeAdaptor.cs (8)
370
return GetTextDecorationColor(decors as
TextDecorationCollection
, TextDecorationLocation.OverLine);
381
return GetTextDecorationLineStyle(decors as
TextDecorationCollection
, TextDecorationLocation.OverLine);
392
return GetTextDecorationColor(decors as
TextDecorationCollection
, TextDecorationLocation.Strikethrough);
403
return GetTextDecorationLineStyle(decors as
TextDecorationCollection
, TextDecorationLocation.Strikethrough);
436
return GetTextDecorationColor(decors as
TextDecorationCollection
, TextDecorationLocation.Underline);
447
return GetTextDecorationLineStyle(decors as
TextDecorationCollection
, TextDecorationLocation.Underline);
1300
private static int GetTextDecorationColor(
TextDecorationCollection
decorations, TextDecorationLocation location)
1326
private static TextDecorationLineStyle GetTextDecorationLineStyle(
TextDecorationCollection
decorations, TextDecorationLocation location)
System\Windows\Documents\DPTypeDescriptorContext.cs (2)
62
stringValue = TextDecorationsFixup((
TextDecorationCollection
)propertyValue);
86
private static string TextDecorationsFixup(
TextDecorationCollection
textDecorations)
System\Windows\Documents\Inline.cs (4)
114
typeof(
TextDecorationCollection
),
117
new FreezableDefaultValueFactory(
TextDecorationCollection
.Empty),
124
public
TextDecorationCollection
TextDecorations
126
get { return (
TextDecorationCollection
) GetValue(TextDecorationsProperty); }
System\Windows\Documents\Paragraph.cs (3)
86
new FreezableDefaultValueFactory(
TextDecorationCollection
.Empty),
93
public
TextDecorationCollection
TextDecorations
95
get { return (
TextDecorationCollection
) GetValue(TextDecorationsProperty); }
System\Windows\Documents\SpellerHighlightLayer.cs (3)
137
private static
TextDecorationCollection
GetErrorTextDecorations()
177
TextDecorationCollection
decorationCollection = new TextDecorationCollection();
247
private static readonly
TextDecorationCollection
_errorTextDecorations;
System\windows\Documents\TextEditorCharacters.cs (3)
218
TextDecorationCollection
textDecorations = propertyValue != DependencyProperty.UnsetValue ? (
TextDecorationCollection
)propertyValue : null;
220
TextDecorationCollection
toggledTextDecorations;
System\Windows\Documents\TextRangeSerialization.cs (4)
859
if (propertyValue == null ||
TextDecorationCollection
.Empty.ValueEquals(propertyValue as
TextDecorationCollection
))
868
while ((propertyValue == null ||
TextDecorationCollection
.Empty.ValueEquals(propertyValue as
TextDecorationCollection
))
System\Windows\Documents\TextSchema.cs (9)
352
return (value is
TextDecorationCollection
) && ((
TextDecorationCollection
)value).Count > 0;
594
if (value2 is
TextDecorationCollection
decorations2)
606
if (value1 is
TextDecorationCollection
decorations1)
625
if (value1 is
TextDecorationCollection
)
627
TextDecorationCollection
decorations1 = (
TextDecorationCollection
)value1;
628
TextDecorationCollection
decorations2 = (
TextDecorationCollection
)value2;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
738
case 644: t = () => typeof(
TextDecorationCollection
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11105
typeof(System.Windows.
TextDecorationCollection
),
System\Windows\Markup\KnownTypes.cs (1)
6192
case KnownElements.TextDecorationCollection: t = typeof(System.Windows.
TextDecorationCollection
); break;
System\Windows\SystemFonts.cs (14)
69
public static
TextDecorationCollection
IconFontTextDecorations
150
public static
TextDecorationCollection
CaptionFontTextDecorations
230
public static
TextDecorationCollection
SmallCaptionFontTextDecorations
307
public static
TextDecorationCollection
MenuFontTextDecorations
387
public static
TextDecorationCollection
StatusFontTextDecorations
481
public static
TextDecorationCollection
MessageFontTextDecorations
505
private static void CopyTextDecorationCollection(
TextDecorationCollection
from,
TextDecorationCollection
to)
1050
private static
TextDecorationCollection
_iconFontTextDecorations;
1051
private static
TextDecorationCollection
_messageFontTextDecorations;
1052
private static
TextDecorationCollection
_statusFontTextDecorations;
1053
private static
TextDecorationCollection
_menuFontTextDecorations;
1054
private static
TextDecorationCollection
_smallCaptionFontTextDecorations;
1055
private static
TextDecorationCollection
_captionFontTextDecorations;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
58
public
TextDecorationCollection
TextDecorations
60
get { return (
TextDecorationCollection
)GetValue(TextDecorationsProperty); }
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHostPropertyMap.cs (1)
142
TextDecorationCollection
decorations = new TextDecorationCollection();