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)
650if (!FontStyles.FontStyleStringToKnownStyle(GetAttributeValue(), CultureInfo.InvariantCulture, ref fontStyle))
MS\Internal\FontFace\FontDifferentiator.cs (1)
55if (fontStyle != FontStyles.Normal)
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
85FontStyles.Normal,
System\Windows\FontStyleConverter.cs (1)
85if (!FontStyles.FontStyleStringToKnownStyle(s, ci, ref fontStyle))
System\Windows\FontStyles.cs (3)
40fontStyle = FontStyles.Normal; 45fontStyle = FontStyles.Italic; 50fontStyle = FontStyles.Oblique;
System\Windows\Media\FontFamily.cs (2)
350FontStyle style = FontStyles.Normal; 432FontStyle style = FontStyles.Normal;
System\Windows\Media\Typeface.cs (1)
61FontStyles.Normal,
PresentationFramework (20)
System\Windows\Controls\TextRangeAdaptor.cs (2)
273return (style == FontStyles.Italic || style == FontStyles.Oblique);
System\windows\Documents\TextEditorCharacters.cs (3)
211FontStyle fontStyle = (propertyValue != DependencyProperty.UnsetValue && (FontStyle)propertyValue == FontStyles.Italic) ? FontStyles.Normal : FontStyles.Italic;
System\windows\Documents\TextEditorDragDrop.cs (1)
431bool italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic);
System\windows\Documents\TextSelection.cs (2)
2048italic = (textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic); 2138italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (FontStyle)fontStylePropertyValue == FontStyles.Italic);
System\Windows\SystemFonts.cs (12)
60return (SystemParameters.IconMetrics.lfFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 139return (SystemParameters.NonClientMetrics.lfCaptionFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 219return (SystemParameters.NonClientMetrics.lfSmCaptionFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 298return (SystemParameters.NonClientMetrics.lfMenuFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 376return (SystemParameters.NonClientMetrics.lfStatusFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal; 472return (SystemParameters.NonClientMetrics.lfMessageFont.lfItalic != 0) ? FontStyles.Italic : FontStyles.Normal;
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
234return sdFont.Italic ? FontStyles.Italic : FontStyles.Normal;
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
161if ((SW.FontStyle)value == SW.FontStyles.Normal) 343if (Host.FontStyle == SW.FontStyles.Normal)