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