25 instantiations of FontWeight
PresentationCore (23)
MS\Internal\FontCache\FamilyCollection.cs (1)
407
fontWeight = new
FontWeight
((int)font.Weight);
MS\Internal\FontFace\CompositeFontParser.cs (1)
646
FontWeight fontWeight = new
FontWeight
();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
216
_style = new MatchingStyle(new FontStyle((int)face.Style), new
FontWeight
((int)face.Weight), new FontStretch((int)face.Stretch));
MS\Internal\FontFace\TypefaceCollection.cs (1)
156
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)
42
return new
FontWeight
(weightValue);
System\Windows\FontWeightConverter.cs (1)
69
FontWeight fontWeight = new
FontWeight
();
System\Windows\FontWeights.cs (16)
21
public static FontWeight Thin { get { return new
FontWeight
(100); } }
26
public static FontWeight ExtraLight { get { return new
FontWeight
(200); } }
31
public static FontWeight UltraLight { get { return new
FontWeight
(200); } }
36
public static FontWeight Light { get { return new
FontWeight
(300); } }
41
public static FontWeight Normal { get { return new
FontWeight
(400); } }
46
public static FontWeight Regular { get { return new
FontWeight
(400); } }
51
public static FontWeight Medium { get { return new
FontWeight
(500); } }
56
public static FontWeight DemiBold { get { return new
FontWeight
(600); } }
61
public static FontWeight SemiBold { get { return new
FontWeight
(600); } }
66
public static FontWeight Bold { get { return new
FontWeight
(700); } }
71
public static FontWeight ExtraBold { get { return new
FontWeight
(800); } }
76
public static FontWeight UltraBold { get { return new
FontWeight
(800); } }
81
public static FontWeight Black { get { return new
FontWeight
(900); } }
86
public static FontWeight Heavy { get { return new
FontWeight
(900); } }
91
public static FontWeight ExtraBlack { get { return new
FontWeight
(950); } }
96
public static FontWeight UltraBlack { get { return new
FontWeight
(950); } }
System\Windows\Media\GlyphTypeface.cs (1)
578
return new
FontWeight
((int)_font.Weight);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4851
DefaultConstructor = delegate () { return new System.Windows.
FontWeight
(); },
System\Windows\Markup\KnownTypes.cs (1)
1275
case KnownElements.FontWeight: o = new System.Windows.
FontWeight
(); break;
137 references to FontWeight
PresentationCore (84)
MS\Internal\FontCache\CachedTypeface.cs (3)
24
private
FontWeight
_canonicalWeight;
32
FontWeight
canonicalWeight,
55
internal
FontWeight
CanonicalWeight
MS\Internal\FontCache\FamilyCollection.cs (1)
327
ref
FontWeight
fontWeight,
MS\Internal\FontFace\CompositeFontParser.cs (1)
646
FontWeight
fontWeight = new FontWeight();
MS\Internal\FontFace\FontDifferentiator.cs (2)
26
FontWeight
weight,
39
FontWeight
fontWeight,
MS\Internal\FontFace\IFontFamily.cs (2)
57
FontWeight
weight,
65
IDeviceFont GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch);
MS\Internal\FontFace\MatchingStyle.cs (1)
32
FontWeight
weight,
MS\Internal\FontFace\PhysicalFontFamily.cs (4)
70
FontWeight
weight,
81
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
113
FontWeight
weight,
138
FontWeight
weight,
MS\Internal\Shaping\CompositeFontFamily.cs (5)
195
FontWeight
weight,
214
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
380
FontWeight
weight,
399
FontWeight
weight,
433
FontWeight
weight,
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (2)
33
private
FontWeight
_weight;
57
FontWeight
weight,
MS\Internal\Shaping\TypefaceMap.cs (5)
34
private
FontWeight
_canonicalWeight;
49
FontWeight
canonicalWeight,
487
FontWeight
canonicalWeight,
870
FontWeight
canonicalWeight = _canonicalWeight;
979
FontWeight
canonicalWeight,
System\Windows\FontWeight.cs (18)
38
public static
FontWeight
FromOpenTypeWeight(int weightValue)
66
public static int Compare(
FontWeight
left,
FontWeight
right)
77
public static bool operator<(
FontWeight
left,
FontWeight
right)
88
public static bool operator<=(
FontWeight
left,
FontWeight
right)
99
public static bool operator>(
FontWeight
left,
FontWeight
right)
110
public static bool operator>=(
FontWeight
left,
FontWeight
right)
122
public static bool operator==(
FontWeight
left,
FontWeight
right)
134
public static bool operator!=(
FontWeight
left,
FontWeight
right)
145
public bool Equals(
FontWeight
obj)
158
if (!(obj is
FontWeight
))
160
return this == (
FontWeight
)obj;
System\Windows\FontWeightConverter.cs (7)
69
FontWeight
fontWeight = new FontWeight();
90
if (destinationType != null && value is
FontWeight
)
94
MethodInfo mi = typeof(
FontWeight
).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
95
FontWeight
c = (
FontWeight
)value;
100
FontWeight
c = (
FontWeight
)value;
System\Windows\FontWeights.cs (18)
21
public static
FontWeight
Thin { get { return new FontWeight(100); } }
26
public static
FontWeight
ExtraLight { get { return new FontWeight(200); } }
31
public static
FontWeight
UltraLight { get { return new FontWeight(200); } }
36
public static
FontWeight
Light { get { return new FontWeight(300); } }
41
public static
FontWeight
Normal { get { return new FontWeight(400); } }
46
public static
FontWeight
Regular { get { return new FontWeight(400); } }
51
public static
FontWeight
Medium { get { return new FontWeight(500); } }
56
public static
FontWeight
DemiBold { get { return new FontWeight(600); } }
61
public static
FontWeight
SemiBold { get { return new FontWeight(600); } }
66
public static
FontWeight
Bold { get { return new FontWeight(700); } }
71
public static
FontWeight
ExtraBold { get { return new FontWeight(800); } }
76
public static
FontWeight
UltraBold { get { return new FontWeight(800); } }
81
public static
FontWeight
Black { get { return new FontWeight(900); } }
86
public static
FontWeight
Heavy { get { return new FontWeight(900); } }
91
public static
FontWeight
ExtraBlack { get { return new FontWeight(950); } }
96
public static
FontWeight
UltraBlack { get { return new FontWeight(950); } }
98
internal static bool FontWeightStringToKnownWeight(string s, IFormatProvider provider, ref
FontWeight
fontWeight)
206
fontWeight =
FontWeight
.FromOpenTypeWeight(weightValue);
System\Windows\Media\FamilyTypeface.cs (2)
59
public
FontWeight
Weight
315
private
FontWeight
_weight;
System\Windows\Media\FontFamily.cs (4)
329
FontWeight
weight = FontWeights.Normal;
411
FontWeight
weight = FontWeights.Normal;
440
ref
FontWeight
weight,
478
ref
FontWeight
weight,
System\Windows\Media\FormattedText.cs (2)
603
public void SetFontWeight(
FontWeight
weight)
614
public void SetFontWeight(
FontWeight
weight, int startIndex, int count)
System\Windows\Media\GlyphTypeface.cs (1)
573
public
FontWeight
Weight
System\Windows\Media\Typeface.cs (6)
33
private
FontWeight
_weight;
70
FontWeight
weight,
95
FontWeight
weight,
123
public
FontWeight
Weight
320
internal
FontWeight
CanonicalWeight
733
FontWeight
canonicalWeight = _weight;
PresentationFramework (47)
MS\Internal\Text\DynamicPropertyReader.cs (4)
42
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
53
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
System\Windows\Controls\AccessText.cs (2)
192
public
FontWeight
FontWeight
194
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\Windows\Controls\Control.cs (2)
268
public
FontWeight
FontWeight
270
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\Windows\Controls\DataGridTextColumn.cs (2)
371
public
FontWeight
FontWeight
373
get { return (
FontWeight
)GetValue(FontWeightProperty); }
System\Windows\Controls\StickyNote.cs (3)
402
typeof(
FontWeight
),
411
public
FontWeight
CaptionFontWeight
413
get { return (
FontWeight
) GetValue(CaptionFontWeightProperty); }
System\Windows\Controls\TextBlock.cs (5)
705
public
FontWeight
FontWeight
707
get { return (
FontWeight
) GetValue(FontWeightProperty); }
716
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
727
public static
FontWeight
GetFontWeight(DependencyObject element)
731
return (
FontWeight
)element.GetValue(FontWeightProperty);
System\Windows\Controls\TextRangeAdaptor.cs (2)
181
FontWeight
fontWeight = (
FontWeight
)tp.GetValue(TextElement.FontWeightProperty);
System\Windows\Documents\FixedSOMTextRun.cs (2)
352
public
FontWeight
FontWeight
429
private
FontWeight
_fontWeight;
System\Windows\Documents\FlowDocument.cs (2)
239
public
FontWeight
FontWeight
241
get { return (
FontWeight
) GetValue(FontWeightProperty); }
System\windows\Documents\TextEditorCharacters.cs (2)
175
FontWeight
fontWeight = (propertyValue != DependencyProperty.UnsetValue && (
FontWeight
)propertyValue == FontWeights.Bold) ? FontWeights.Normal : FontWeights.Bold;
System\Windows\Documents\TextElement.cs (6)
542
typeof(
FontWeight
),
551
public
FontWeight
FontWeight
553
get { return (
FontWeight
) GetValue(FontWeightProperty); }
562
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
573
public static
FontWeight
GetFontWeight(DependencyObject element)
577
return (
FontWeight
)element.GetValue(FontWeightProperty);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
315
case 221: t = () => typeof(
FontWeight
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4848
typeof(System.Windows.
FontWeight
),
System\Windows\Markup\KnownTypes.cs (1)
5769
case KnownElements.FontWeight: t = typeof(System.Windows.
FontWeight
); break;
System\Windows\SystemFonts.cs (12)
58
public static
FontWeight
IconFontWeight
62
return
FontWeight
.FromOpenTypeWeight(SystemParameters.IconMetrics.lfFont.lfWeight);
138
public static
FontWeight
CaptionFontWeight
142
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfCaptionFont.lfWeight);
218
public static
FontWeight
SmallCaptionFontWeight
222
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfSmCaptionFont.lfWeight);
296
public static
FontWeight
MenuFontWeight
300
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMenuFont.lfWeight);
375
public static
FontWeight
StatusFontWeight
379
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfStatusFont.lfWeight);
470
public static
FontWeight
MessageFontWeight
474
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMessageFont.lfWeight);
WindowsFormsIntegration (6)
System\Windows\Integration\Convert.cs (1)
225
internal static
FontWeight
ToSystemWindowsFontWeight(SD.Font sdFont)
System\Windows\Integration\HostUtils.cs (1)
407
public static bool FontWeightIsBold(
FontWeight
fontWeight)
System\Windows\Integration\WindowsFormsHost.cs (2)
648
public SW.
FontWeight
FontWeight
650
get { return (
FontWeight
)GetValue(FontWeightProperty); }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
186
if (adapter != null && value is SW.
FontWeight
)
189
if (HostUtils.FontWeightIsBold((SW.
FontWeight
)value))