37 references to FontWeights
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
DependencyObjectExtensions.cs (2)
19
dependencyObject.SetValue(TextElement.FontWeightProperty, textProperties.Bold ?
FontWeights
.Bold :
FontWeights
.Normal);
Microsoft.VisualStudio.LanguageServices (3)
FindReferences\RoslynDefinitionBucket.cs (1)
120
inline.SetValue(TextElement.FontWeightProperty,
FontWeights
.Bold);
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (2)
74
FontWeight = isBold ?
FontWeights
.Bold :
FontWeights
.Normal
PresentationCore (25)
MS\Internal\FontFace\CompositeFontParser.cs (1)
646
if (!
FontWeights
.FontWeightStringToKnownWeight(GetAttributeValue(), CultureInfo.InvariantCulture, ref fontWeight))
MS\Internal\FontFace\FontDifferentiator.cs (1)
47
if (fontWeight !=
FontWeights
.Normal)
MS\Internal\FontFace\MatchingStyle.cs (1)
39
(weight.ToOpenTypeWeight() -
FontWeights
.Normal.ToOpenTypeWeight()) / 100.0 * FontWeightScale
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
82
FontWeights
.Regular,
System\Windows\FontWeight.cs (1)
211
if (!
FontWeights
.FontWeightToString(RealWeight, out convertedValue))
System\Windows\FontWeightConverter.cs (1)
70
if (!
FontWeights
.FontWeightStringToKnownWeight(s, ci, ref fontWeight))
System\Windows\FontWeights.cs (16)
105
fontWeight =
FontWeights
.Bold;
110
fontWeight =
FontWeights
.Thin;
118
fontWeight =
FontWeights
.Black;
123
fontWeight =
FontWeights
.Light;
128
fontWeight =
FontWeights
.Heavy;
136
fontWeight =
FontWeights
.Normal;
141
fontWeight =
FontWeights
.Medium;
149
fontWeight =
FontWeights
.Regular;
157
fontWeight =
FontWeights
.SemiBold;
162
fontWeight =
FontWeights
.DemiBold;
170
fontWeight =
FontWeights
.ExtraBold;
175
fontWeight =
FontWeights
.UltraBold;
183
fontWeight =
FontWeights
.ExtraLight;
188
fontWeight =
FontWeights
.UltraLight;
193
fontWeight =
FontWeights
.ExtraBlack;
198
fontWeight =
FontWeights
.UltraBlack;
System\Windows\Media\FontFamily.cs (2)
332
FontWeight weight =
FontWeights
.Normal;
414
FontWeight weight =
FontWeights
.Normal;
System\Windows\Media\Typeface.cs (1)
53
FontWeights
.Normal,
PresentationFramework (4)
System\windows\Documents\TextEditorCharacters.cs (3)
175
FontWeight fontWeight = (propertyValue != DependencyProperty.UnsetValue && (FontWeight)propertyValue ==
FontWeights
.Bold) ?
FontWeights
.Normal :
FontWeights
.Bold;
System\windows\Documents\TextEditorContextMenu.cs (1)
491
text.FontWeight =
FontWeights
.Bold;
WindowsFormsIntegration (3)
System\Windows\Integration\Convert.cs (2)
226
return sdFont.Bold ?
FontWeights
.Bold :
FontWeights
.Normal;
System\Windows\Integration\HostUtils.cs (1)
409
return fontWeight >= SW.
FontWeights
.Medium;