25 instantiations of FontWeight
PresentationCore (23)
MS\Internal\FontCache\FamilyCollection.cs (1)
406
fontWeight = new
FontWeight
((int)font.Weight);
MS\Internal\FontFace\CompositeFontParser.cs (1)
645
FontWeight fontWeight = new
FontWeight
();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
215
_style = new MatchingStyle(new FontStyle((int)face.Style), new
FontWeight
((int)face.Weight), new FontStretch((int)face.Stretch));
MS\Internal\FontFace\TypefaceCollection.cs (1)
155
return new Typeface(_typefaceCollection._fontFamily, new FontStyle((int)face.Style), new
FontWeight
((int)face.Weight), new FontStretch((int)face.Stretch));
System\Windows\FontWeight.cs (1)
41
return new
FontWeight
(weightValue);
System\Windows\FontWeightConverter.cs (1)
68
FontWeight fontWeight = new
FontWeight
();
System\Windows\FontWeights.cs (16)
20
public static FontWeight Thin { get { return new
FontWeight
(100); } }
25
public static FontWeight ExtraLight { get { return new
FontWeight
(200); } }
30
public static FontWeight UltraLight { get { return new
FontWeight
(200); } }
35
public static FontWeight Light { get { return new
FontWeight
(300); } }
40
public static FontWeight Normal { get { return new
FontWeight
(400); } }
45
public static FontWeight Regular { get { return new
FontWeight
(400); } }
50
public static FontWeight Medium { get { return new
FontWeight
(500); } }
55
public static FontWeight DemiBold { get { return new
FontWeight
(600); } }
60
public static FontWeight SemiBold { get { return new
FontWeight
(600); } }
65
public static FontWeight Bold { get { return new
FontWeight
(700); } }
70
public static FontWeight ExtraBold { get { return new
FontWeight
(800); } }
75
public static FontWeight UltraBold { get { return new
FontWeight
(800); } }
80
public static FontWeight Black { get { return new
FontWeight
(900); } }
85
public static FontWeight Heavy { get { return new
FontWeight
(900); } }
90
public static FontWeight ExtraBlack { get { return new
FontWeight
(950); } }
95
public static FontWeight UltraBlack { get { return new
FontWeight
(950); } }
System\Windows\Media\GlyphTypeface.cs (1)
577
return new
FontWeight
((int)_font.Weight);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4850
DefaultConstructor = delegate () { return new System.Windows.
FontWeight
(); },
System\Windows\Markup\KnownTypes.cs (1)
1274
case KnownElements.FontWeight: o = new System.Windows.
FontWeight
(); break;
137 references to FontWeight
PresentationCore (84)
MS\Internal\FontCache\CachedTypeface.cs (3)
23
private
FontWeight
_canonicalWeight;
31
FontWeight
canonicalWeight,
54
internal
FontWeight
CanonicalWeight
MS\Internal\FontCache\FamilyCollection.cs (1)
326
ref
FontWeight
fontWeight,
MS\Internal\FontFace\CompositeFontParser.cs (1)
645
FontWeight
fontWeight = new FontWeight();
MS\Internal\FontFace\FontDifferentiator.cs (2)
25
FontWeight
weight,
38
FontWeight
fontWeight,
MS\Internal\FontFace\IFontFamily.cs (2)
56
FontWeight
weight,
64
IDeviceFont GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch);
MS\Internal\FontFace\MatchingStyle.cs (1)
31
FontWeight
weight,
MS\Internal\FontFace\PhysicalFontFamily.cs (4)
69
FontWeight
weight,
80
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
112
FontWeight
weight,
137
FontWeight
weight,
MS\Internal\Shaping\CompositeFontFamily.cs (5)
194
FontWeight
weight,
213
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
379
FontWeight
weight,
398
FontWeight
weight,
432
FontWeight
weight,
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (2)
32
private
FontWeight
_weight;
56
FontWeight
weight,
MS\Internal\Shaping\TypefaceMap.cs (5)
33
private
FontWeight
_canonicalWeight;
48
FontWeight
canonicalWeight,
486
FontWeight
canonicalWeight,
869
FontWeight
canonicalWeight = _canonicalWeight;
978
FontWeight
canonicalWeight,
System\Windows\FontWeight.cs (18)
37
public static
FontWeight
FromOpenTypeWeight(int weightValue)
65
public static int Compare(
FontWeight
left,
FontWeight
right)
76
public static bool operator<(
FontWeight
left,
FontWeight
right)
87
public static bool operator<=(
FontWeight
left,
FontWeight
right)
98
public static bool operator>(
FontWeight
left,
FontWeight
right)
109
public static bool operator>=(
FontWeight
left,
FontWeight
right)
121
public static bool operator==(
FontWeight
left,
FontWeight
right)
133
public static bool operator!=(
FontWeight
left,
FontWeight
right)
144
public bool Equals(
FontWeight
obj)
157
if (!(obj is
FontWeight
))
159
return this == (
FontWeight
)obj;
System\Windows\FontWeightConverter.cs (7)
68
FontWeight
fontWeight = new FontWeight();
89
if (destinationType != null && value is
FontWeight
)
93
MethodInfo mi = typeof(
FontWeight
).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
94
FontWeight
c = (
FontWeight
)value;
99
FontWeight
c = (
FontWeight
)value;
System\Windows\FontWeights.cs (18)
20
public static
FontWeight
Thin { get { return new FontWeight(100); } }
25
public static
FontWeight
ExtraLight { get { return new FontWeight(200); } }
30
public static
FontWeight
UltraLight { get { return new FontWeight(200); } }
35
public static
FontWeight
Light { get { return new FontWeight(300); } }
40
public static
FontWeight
Normal { get { return new FontWeight(400); } }
45
public static
FontWeight
Regular { get { return new FontWeight(400); } }
50
public static
FontWeight
Medium { get { return new FontWeight(500); } }
55
public static
FontWeight
DemiBold { get { return new FontWeight(600); } }
60
public static
FontWeight
SemiBold { get { return new FontWeight(600); } }
65
public static
FontWeight
Bold { get { return new FontWeight(700); } }
70
public static
FontWeight
ExtraBold { get { return new FontWeight(800); } }
75
public static
FontWeight
UltraBold { get { return new FontWeight(800); } }
80
public static
FontWeight
Black { get { return new FontWeight(900); } }
85
public static
FontWeight
Heavy { get { return new FontWeight(900); } }
90
public static
FontWeight
ExtraBlack { get { return new FontWeight(950); } }
95
public static
FontWeight
UltraBlack { get { return new FontWeight(950); } }
97
internal static bool FontWeightStringToKnownWeight(string s, IFormatProvider provider, ref
FontWeight
fontWeight)
205
fontWeight =
FontWeight
.FromOpenTypeWeight(weightValue);
System\Windows\Media\FamilyTypeface.cs (2)
58
public
FontWeight
Weight
314
private
FontWeight
_weight;
System\Windows\Media\FontFamily.cs (4)
328
FontWeight
weight = FontWeights.Normal;
410
FontWeight
weight = FontWeights.Normal;
439
ref
FontWeight
weight,
477
ref
FontWeight
weight,
System\Windows\Media\FormattedText.cs (2)
602
public void SetFontWeight(
FontWeight
weight)
613
public void SetFontWeight(
FontWeight
weight, int startIndex, int count)
System\Windows\Media\GlyphTypeface.cs (1)
572
public
FontWeight
Weight
System\Windows\Media\Typeface.cs (6)
32
private
FontWeight
_weight;
69
FontWeight
weight,
94
FontWeight
weight,
122
public
FontWeight
Weight
319
internal
FontWeight
CanonicalWeight
732
FontWeight
canonicalWeight = _weight;
PresentationFramework (47)
MS\Internal\Text\DynamicPropertyReader.cs (4)
41
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
52
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
System\Windows\Controls\AccessText.cs (2)
191
public
FontWeight
FontWeight
193
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\Windows\Controls\Control.cs (2)
267
public
FontWeight
FontWeight
269
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\Windows\Controls\DataGridTextColumn.cs (2)
370
public
FontWeight
FontWeight
372
get { return (
FontWeight
)GetValue(FontWeightProperty); }
System\Windows\Controls\StickyNote.cs (3)
401
typeof(
FontWeight
),
410
public
FontWeight
CaptionFontWeight
412
get { return (
FontWeight
) GetValue(CaptionFontWeightProperty); }
System\Windows\Controls\TextBlock.cs (5)
704
public
FontWeight
FontWeight
706
get { return (
FontWeight
) GetValue(FontWeightProperty); }
715
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
726
public static
FontWeight
GetFontWeight(DependencyObject element)
730
return (
FontWeight
)element.GetValue(FontWeightProperty);
System\Windows\Controls\TextRangeAdaptor.cs (2)
180
FontWeight
fontWeight = (
FontWeight
)tp.GetValue(TextElement.FontWeightProperty);
System\Windows\Documents\FixedSOMTextRun.cs (2)
351
public
FontWeight
FontWeight
428
private
FontWeight
_fontWeight;
System\Windows\Documents\FlowDocument.cs (2)
238
public
FontWeight
FontWeight
240
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\windows\Documents\TextEditorCharacters.cs (2)
174
FontWeight
fontWeight = (propertyValue != DependencyProperty.UnsetValue && (
FontWeight
)propertyValue == FontWeights.Bold) ? FontWeights.Normal : FontWeights.Bold;
System\Windows\Documents\TextElement.cs (6)
541
typeof(
FontWeight
),
550
public
FontWeight
FontWeight
552
get { return (
FontWeight
) GetValue(FontWeightProperty); }
561
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
572
public static
FontWeight
GetFontWeight(DependencyObject element)
576
return (
FontWeight
)element.GetValue(FontWeightProperty);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
314
case 221: t = () => typeof(
FontWeight
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4847
typeof(System.Windows.
FontWeight
),
System\Windows\Markup\KnownTypes.cs (1)
5768
case KnownElements.FontWeight: t = typeof(System.Windows.
FontWeight
); break;
System\Windows\SystemFonts.cs (12)
57
public static
FontWeight
IconFontWeight
61
return
FontWeight
.FromOpenTypeWeight(SystemParameters.IconMetrics.lfFont.lfWeight);
137
public static
FontWeight
CaptionFontWeight
141
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfCaptionFont.lfWeight);
217
public static
FontWeight
SmallCaptionFontWeight
221
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfSmCaptionFont.lfWeight);
295
public static
FontWeight
MenuFontWeight
299
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMenuFont.lfWeight);
374
public static
FontWeight
StatusFontWeight
378
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfStatusFont.lfWeight);
469
public static
FontWeight
MessageFontWeight
473
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMessageFont.lfWeight);
WindowsFormsIntegration (6)
System\Windows\Integration\Convert.cs (1)
224
internal static
FontWeight
ToSystemWindowsFontWeight(SD.Font sdFont)
System\Windows\Integration\HostUtils.cs (1)
406
public static bool FontWeightIsBold(
FontWeight
fontWeight)
System\Windows\Integration\WindowsFormsHost.cs (2)
647
public SW.
FontWeight
FontWeight
649
get { return (
FontWeight
)GetValue(FontWeightProperty); }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
185
if (adapter != null && value is SW.
FontWeight
)
188
if (HostUtils.FontWeightIsBold((SW.
FontWeight
)value))