38 references to FontStyles
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
DependencyObjectExtensions.cs (2)
18dependencyObject.SetValue(TextElement.FontStyleProperty, textProperties.Italic ? FontStyles.Italic : FontStyles.Normal);
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
62FontStyle = FontStyles.Normal,
InlineHints\InlineHintsTag.cs (1)
133FontStyle = FontStyles.Normal,
PresentationCore (10)
MS\Internal\FontFace\CompositeFontParser.cs (1)
638if (!FontStyles.FontStyleStringToKnownStyle(GetAttributeValue(), CultureInfo.InvariantCulture, ref fontStyle))
MS\Internal\FontFace\FontDifferentiator.cs (1)
53if (fontStyle != FontStyles.Normal)
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
81FontStyles.Normal,
System\Windows\FontStyleConverter.cs (1)
70if (!FontStyles.FontStyleStringToKnownStyle(s, ci, ref fontStyle))
System\Windows\FontStyles.cs (3)
36fontStyle = FontStyles.Normal; 41fontStyle = FontStyles.Italic; 46fontStyle = FontStyles.Oblique;
System\Windows\Media\FontFamily.cs (2)
331FontStyle style = FontStyles.Normal; 413FontStyle style = FontStyles.Normal;
System\Windows\Media\Typeface.cs (1)
52FontStyles.Normal,
PresentationFramework (20)
System\Windows\Controls\TextRangeAdaptor.cs (2)
271return (style == FontStyles.Italic || style == FontStyles.Oblique);
System\windows\Documents\TextEditorCharacters.cs (3)
195FontStyle fontStyle = (propertyValue != DependencyProperty.UnsetValue && (FontStyle)propertyValue == FontStyles.Italic) ? FontStyles.Normal : FontStyles.Italic;
System\windows\Documents\TextEditorDragDrop.cs (1)
414bool italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic);
System\windows\Documents\TextSelection.cs (2)
2045italic = (textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic); 2135italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic);
System\Windows\SystemFonts.cs (12)
51return (SystemParameters.IconMetrics.lfFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 130return (SystemParameters.NonClientMetrics.lfCaptionFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 210return (SystemParameters.NonClientMetrics.lfSmCaptionFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 289return (SystemParameters.NonClientMetrics.lfMenuFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 367return (SystemParameters.NonClientMetrics.lfStatusFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 463return (SystemParameters.NonClientMetrics.lfMessageFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal;
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
231return sdFont.Italic ? FontStyles.Italic : FontStyles.Normal;
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
160if ((SW.FontStyle)value == SW.FontStyles.Normal) 342if (Host.FontStyle == SW.FontStyles.Normal)