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