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