25 instantiations of FontWeight
PresentationCore (23)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
572
fontWeight = new
FontWeight
((int)font.Weight);
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
664
FontWeight fontWeight = new
FontWeight
();
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (1)
254
_style = new MatchingStyle(new FontStyle((int)face.Style), new
FontWeight
((int)face.Weight), new FontStretch((int)face.Stretch));
Core\CSharp\MS\Internal\FontFace\TypefaceCollection.cs (1)
187
return new Typeface(_typefaceCollection._fontFamily, new FontStyle((int)face.Style), new
FontWeight
((int)face.Weight), new FontStretch((int)face.Stretch));
Core\CSharp\System\Windows\FontWeight.cs (1)
48
return new
FontWeight
(weightValue);
Core\CSharp\System\Windows\FontWeightConverter.cs (1)
87
FontWeight fontWeight = new
FontWeight
();
Core\CSharp\System\Windows\FontWeights.cs (16)
25
public static FontWeight Thin { get { return new
FontWeight
(100); } }
30
public static FontWeight ExtraLight { get { return new
FontWeight
(200); } }
35
public static FontWeight UltraLight { get { return new
FontWeight
(200); } }
40
public static FontWeight Light { get { return new
FontWeight
(300); } }
45
public static FontWeight Normal { get { return new
FontWeight
(400); } }
50
public static FontWeight Regular { get { return new
FontWeight
(400); } }
55
public static FontWeight Medium { get { return new
FontWeight
(500); } }
60
public static FontWeight DemiBold { get { return new
FontWeight
(600); } }
65
public static FontWeight SemiBold { get { return new
FontWeight
(600); } }
70
public static FontWeight Bold { get { return new
FontWeight
(700); } }
75
public static FontWeight ExtraBold { get { return new
FontWeight
(800); } }
80
public static FontWeight UltraBold { get { return new
FontWeight
(800); } }
85
public static FontWeight Black { get { return new
FontWeight
(900); } }
90
public static FontWeight Heavy { get { return new
FontWeight
(900); } }
95
public static FontWeight ExtraBlack { get { return new
FontWeight
(950); } }
100
public static FontWeight UltraBlack { get { return new
FontWeight
(950); } }
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
779
return new
FontWeight
((int)_font.Weight);
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4474
bamlType.DefaultConstructor = delegate() { return new System.Windows.
FontWeight
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1282
case KnownElements.FontWeight: o = new System.Windows.
FontWeight
(); break;
134 references to FontWeight
PresentationCore (84)
Core\CSharp\MS\Internal\FontCache\CachedTypeface.cs (3)
26
private
FontWeight
_canonicalWeight;
34
FontWeight
canonicalWeight,
57
internal
FontWeight
CanonicalWeight
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
492
ref
FontWeight
fontWeight,
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
664
FontWeight
fontWeight = new FontWeight();
Core\CSharp\MS\Internal\FontFace\FontDifferentiator.cs (2)
31
FontWeight
weight,
44
FontWeight
fontWeight,
Core\CSharp\MS\Internal\FontFace\IFontFamily.cs (2)
63
FontWeight
weight,
71
IDeviceFont GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch);
Core\CSharp\MS\Internal\FontFace\MatchingStyle.cs (1)
41
FontWeight
weight,
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (4)
83
FontWeight
weight,
94
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
139
FontWeight
weight,
172
FontWeight
weight,
Core\CSharp\MS\Internal\Shaping\CompositeFontFamily.cs (5)
212
FontWeight
weight,
231
IDeviceFont IFontFamily.GetDeviceFont(FontStyle style,
FontWeight
weight, FontStretch stretch)
397
FontWeight
weight,
416
FontWeight
weight,
450
FontWeight
weight,
Core\CSharp\MS\Internal\Shaping\CompositeTypefaceMetrics.cs (2)
39
private
FontWeight
_weight;
63
FontWeight
weight,
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (5)
44
private
FontWeight
_canonicalWeight;
59
FontWeight
canonicalWeight,
504
FontWeight
canonicalWeight,
887
FontWeight
canonicalWeight = _canonicalWeight;
996
FontWeight
canonicalWeight,
Core\CSharp\System\Windows\FontWeight.cs (18)
44
public static
FontWeight
FromOpenTypeWeight(int weightValue)
72
public static int Compare(
FontWeight
left,
FontWeight
right)
83
public static bool operator<(
FontWeight
left,
FontWeight
right)
94
public static bool operator<=(
FontWeight
left,
FontWeight
right)
105
public static bool operator>(
FontWeight
left,
FontWeight
right)
116
public static bool operator>=(
FontWeight
left,
FontWeight
right)
128
public static bool operator==(
FontWeight
left,
FontWeight
right)
140
public static bool operator!=(
FontWeight
left,
FontWeight
right)
151
public bool Equals(
FontWeight
obj)
164
if (!(obj is
FontWeight
))
166
return this == (
FontWeight
)obj;
Core\CSharp\System\Windows\FontWeightConverter.cs (7)
87
FontWeight
fontWeight = new FontWeight();
113
if (destinationType != null && value is
FontWeight
)
117
MethodInfo mi = typeof(
FontWeight
).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
118
FontWeight
c = (
FontWeight
)value;
123
FontWeight
c = (
FontWeight
)value;
Core\CSharp\System\Windows\FontWeights.cs (18)
25
public static
FontWeight
Thin { get { return new FontWeight(100); } }
30
public static
FontWeight
ExtraLight { get { return new FontWeight(200); } }
35
public static
FontWeight
UltraLight { get { return new FontWeight(200); } }
40
public static
FontWeight
Light { get { return new FontWeight(300); } }
45
public static
FontWeight
Normal { get { return new FontWeight(400); } }
50
public static
FontWeight
Regular { get { return new FontWeight(400); } }
55
public static
FontWeight
Medium { get { return new FontWeight(500); } }
60
public static
FontWeight
DemiBold { get { return new FontWeight(600); } }
65
public static
FontWeight
SemiBold { get { return new FontWeight(600); } }
70
public static
FontWeight
Bold { get { return new FontWeight(700); } }
75
public static
FontWeight
ExtraBold { get { return new FontWeight(800); } }
80
public static
FontWeight
UltraBold { get { return new FontWeight(800); } }
85
public static
FontWeight
Black { get { return new FontWeight(900); } }
90
public static
FontWeight
Heavy { get { return new FontWeight(900); } }
95
public static
FontWeight
ExtraBlack { get { return new FontWeight(950); } }
100
public static
FontWeight
UltraBlack { get { return new FontWeight(950); } }
102
internal static bool FontWeightStringToKnownWeight(string s, IFormatProvider provider, ref
FontWeight
fontWeight)
210
fontWeight =
FontWeight
.FromOpenTypeWeight(weightValue);
Core\CSharp\System\Windows\Media\FamilyTypeface.cs (2)
78
public
FontWeight
Weight
338
private
FontWeight
_weight;
Core\CSharp\System\Windows\Media\FontFamily.cs (4)
357
FontWeight
weight = FontWeights.Normal;
441
FontWeight
weight = FontWeights.Normal;
475
ref
FontWeight
weight,
520
ref
FontWeight
weight,
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
639
public void SetFontWeight(
FontWeight
weight)
650
public void SetFontWeight(
FontWeight
weight, int startIndex, int count)
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
773
public
FontWeight
Weight
Core\CSharp\System\Windows\Media\Typeface.cs (6)
45
private
FontWeight
_weight;
82
FontWeight
weight,
107
FontWeight
weight,
138
public
FontWeight
Weight
335
internal
FontWeight
CanonicalWeight
748
FontWeight
canonicalWeight = _weight;
PresentationFramework (47)
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (4)
51
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
62
FontWeight
fontWeight = (
FontWeight
) element.GetValue(TextElement.FontWeightProperty);
src\Framework\System\Windows\Controls\AccessText.cs (2)
194
public
FontWeight
FontWeight
196
get { return (
FontWeight
) GetValue(FontWeightProperty); }
src\Framework\System\Windows\Controls\Control.cs (2)
278
public
FontWeight
FontWeight
280
get { return (
FontWeight
) GetValue(FontWeightProperty); }
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (2)
375
public
FontWeight
FontWeight
377
get { return (
FontWeight
)GetValue(FontWeightProperty); }
src\Framework\System\Windows\Controls\StickyNote.cs (3)
445
typeof(
FontWeight
),
454
public
FontWeight
CaptionFontWeight
456
get { return (
FontWeight
) GetValue(CaptionFontWeightProperty); }
src\Framework\System\Windows\Controls\TextBlock.cs (5)
753
public
FontWeight
FontWeight
755
get { return (
FontWeight
) GetValue(FontWeightProperty); }
764
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
778
public static
FontWeight
GetFontWeight(DependencyObject element)
785
return (
FontWeight
)element.GetValue(FontWeightProperty);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
191
FontWeight
fontWeight = (
FontWeight
)tp.GetValue(TextElement.FontWeightProperty);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
359
public
FontWeight
FontWeight
434
private
FontWeight
_fontWeight;
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
247
public
FontWeight
FontWeight
249
get { return (
FontWeight
) GetValue(FontWeightProperty); }
src\Framework\System\windows\Documents\TextEditorCharacters.cs (2)
193
FontWeight
fontWeight = (propertyValue != DependencyProperty.UnsetValue && (
FontWeight
)propertyValue == FontWeights.Bold) ? FontWeights.Normal : FontWeights.Bold;
src\Framework\System\Windows\Documents\TextElement.cs (6)
574
typeof(
FontWeight
),
583
public
FontWeight
FontWeight
585
get { return (
FontWeight
) GetValue(FontWeightProperty); }
594
public static void SetFontWeight(DependencyObject element,
FontWeight
value)
608
public static
FontWeight
GetFontWeight(DependencyObject element)
615
return (
FontWeight
)element.GetValue(FontWeightProperty);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
313
case 221: t = () => typeof(
FontWeight
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4472
typeof(System.Windows.
FontWeight
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5765
case KnownElements.FontWeight: t = typeof(System.Windows.
FontWeight
); break;
src\Framework\System\Windows\SystemFonts.cs (12)
63
public static
FontWeight
IconFontWeight
67
return
FontWeight
.FromOpenTypeWeight(SystemParameters.IconMetrics.lfFont.lfWeight);
143
public static
FontWeight
CaptionFontWeight
147
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfCaptionFont.lfWeight);
223
public static
FontWeight
SmallCaptionFontWeight
227
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfSmCaptionFont.lfWeight);
301
public static
FontWeight
MenuFontWeight
305
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMenuFont.lfWeight);
380
public static
FontWeight
StatusFontWeight
384
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfStatusFont.lfWeight);
460
public static
FontWeight
MessageFontWeight
464
return
FontWeight
.FromOpenTypeWeight(SystemParameters.NonClientMetrics.lfMessageFont.lfWeight);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (3)
552
public static
FontWeight
FontWeight
601
private static
FontWeight
GetFontWeight(string key)
603
return (
FontWeight
)GetFontOrColor(key, SystemFonts.MessageFontWeight, SystemFonts.MessageFontWeight);