11 instantiations of FontStyle
PresentationCore (9)
MS\Internal\FontCache\FamilyCollection.cs (1)
406
fontStyle = new
FontStyle
((int)font.Style);
MS\Internal\FontFace\CompositeFontParser.cs (1)
638
FontStyle fontStyle = new
FontStyle
();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
216
_style = new MatchingStyle(new
FontStyle
((int)face.Style), new FontWeight((int)face.Weight), new FontStretch((int)face.Stretch));
MS\Internal\FontFace\TypefaceCollection.cs (1)
156
return new Typeface(_typefaceCollection._fontFamily, new
FontStyle
((int)face.Style), new FontWeight((int)face.Weight), new FontStretch((int)face.Stretch));
System\Windows\FontStyleConverter.cs (1)
69
FontStyle fontStyle = new
FontStyle
();
System\Windows\FontStyles.cs (3)
20
public static FontStyle Normal { get { return new
FontStyle
(0); } }
25
public static FontStyle Oblique { get { return new
FontStyle
(1); } }
30
public static FontStyle Italic { get { return new
FontStyle
(2); } }
System\Windows\Media\GlyphTypeface.cs (1)
565
return new
FontStyle
((int)_font.Style);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4822
DefaultConstructor = delegate () { return new System.Windows.
FontStyle
(); },
System\Windows\Markup\KnownTypes.cs (1)
1273
case KnownElements.FontStyle: o = new System.Windows.
FontStyle
(); break;
107 references to FontStyle
PresentationCore (58)
MS\Internal\FontCache\CachedTypeface.cs (3)
23
private
FontStyle
_canonicalStyle;
31
FontStyle
canonicalStyle,
50
internal
FontStyle
CanonicalStyle
MS\Internal\FontCache\FamilyCollection.cs (1)
326
ref
FontStyle
fontStyle,
MS\Internal\FontFace\CompositeFontParser.cs (1)
638
FontStyle
fontStyle = new FontStyle();
MS\Internal\FontFace\FontDifferentiator.cs (2)
25
FontStyle
style,
38
FontStyle
fontStyle,
MS\Internal\FontFace\IFontFamily.cs (2)
56
FontStyle
style,
65
IDeviceFont GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch);
MS\Internal\FontFace\MatchingStyle.cs (1)
31
FontStyle
style,
MS\Internal\FontFace\PhysicalFontFamily.cs (4)
69
FontStyle
style,
81
IDeviceFont IFontFamily.GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch)
112
FontStyle
style,
137
FontStyle
style,
MS\Internal\Shaping\CompositeFontFamily.cs (5)
194
FontStyle
style,
214
IDeviceFont IFontFamily.GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch)
379
FontStyle
style,
398
FontStyle
style,
432
FontStyle
style,
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (2)
32
private
FontStyle
_style;
56
FontStyle
style,
MS\Internal\Shaping\TypefaceMap.cs (5)
33
private
FontStyle
_canonicalStyle;
48
FontStyle
canonicalStyle,
486
FontStyle
canonicalStyle,
869
FontStyle
canonicalStyle = _canonicalStyle;
978
FontStyle
canonicalStyle,
System\Windows\FontStyle.cs (7)
35
public static bool operator ==(
FontStyle
left,
FontStyle
right)
47
public static bool operator !=(
FontStyle
left,
FontStyle
right)
58
public bool Equals(
FontStyle
obj)
71
if (!(obj is
FontStyle
))
73
return this == (
FontStyle
)obj;
System\Windows\FontStyleConverter.cs (6)
69
FontStyle
fontStyle = new FontStyle();
90
if (destinationType != null && value is
FontStyle
)
94
ConstructorInfo ci = typeof(
FontStyle
).GetConstructor(new Type[]{typeof(int)});
95
int c = ((
FontStyle
)value).GetStyleForInternalConstruction();
100
FontStyle
c = (
FontStyle
)value;
System\Windows\FontStyles.cs (4)
20
public static
FontStyle
Normal { get { return new FontStyle(0); } }
25
public static
FontStyle
Oblique { get { return new FontStyle(1); } }
30
public static
FontStyle
Italic { get { return new FontStyle(2); } }
32
internal static bool FontStyleStringToKnownStyle(string s, IFormatProvider provider, ref
FontStyle
fontStyle)
System\Windows\Media\FamilyTypeface.cs (2)
45
public
FontStyle
Style
314
private
FontStyle
_style;
System\Windows\Media\FontFamily.cs (4)
328
FontStyle
style = FontStyles.Normal;
410
FontStyle
style = FontStyles.Normal;
439
ref
FontStyle
style,
477
ref
FontStyle
style,
System\Windows\Media\FormattedText.cs (2)
653
public void SetFontStyle(
FontStyle
style)
664
public void SetFontStyle(
FontStyle
style, int startIndex, int count)
System\Windows\Media\GlyphTypeface.cs (1)
560
public
FontStyle
Style
System\Windows\Media\Typeface.cs (6)
32
private
FontStyle
_style;
69
FontStyle
style,
94
FontStyle
style,
132
public
FontStyle
Style
312
internal
FontStyle
CanonicalStyle
732
FontStyle
canonicalStyle = _style;
PresentationFramework (44)
MS\Internal\Text\DynamicPropertyReader.cs (4)
41
FontStyle
fontStyle = (
FontStyle
) element.GetValue(TextElement.FontStyleProperty);
52
FontStyle
fontStyle = (
FontStyle
) element.GetValue(TextElement.FontStyleProperty);
System\Windows\Controls\AccessText.cs (2)
177
public
FontStyle
FontStyle
179
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\Windows\Controls\Control.cs (2)
244
public
FontStyle
FontStyle
246
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\Windows\Controls\DataGridTextColumn.cs (2)
350
public
FontStyle
FontStyle
352
get { return (
FontStyle
)GetValue(FontStyleProperty); }
System\Windows\Controls\StickyNote.cs (3)
380
typeof(
FontStyle
), typeof(StickyNoteControl),
388
public
FontStyle
CaptionFontStyle
390
get { return (
FontStyle
) GetValue(CaptionFontStyleProperty); }
System\Windows\Controls\TextBlock.cs (5)
666
public
FontStyle
FontStyle
668
get { return (
FontStyle
) GetValue(FontStyleProperty); }
677
public static void SetFontStyle(DependencyObject element,
FontStyle
value)
688
public static
FontStyle
GetFontStyle(DependencyObject element)
692
return (
FontStyle
)element.GetValue(FontStyleProperty);
System\Windows\Controls\TextRangeAdaptor.cs (2)
269
FontStyle
style = (
FontStyle
)tp.GetValue(TextElement.FontStyleProperty);
System\Windows\Documents\FixedSOMTextRun.cs (2)
340
public
FontStyle
FontStyle
428
private
FontStyle
_fontStyle;
System\Windows\Documents\FlowDocument.cs (2)
224
public
FontStyle
FontStyle
226
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\windows\Documents\TextEditorCharacters.cs (2)
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\TextElement.cs (6)
497
typeof(
FontStyle
),
506
public
FontStyle
FontStyle
508
get { return (
FontStyle
) GetValue(FontStyleProperty); }
517
public static void SetFontStyle(DependencyObject element,
FontStyle
value)
528
public static
FontStyle
GetFontStyle(DependencyObject element)
532
return (
FontStyle
)element.GetValue(FontStyleProperty);
System\windows\Documents\TextSelection.cs (2)
2030
italic = (textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (
FontStyle
)fontStylePropertyValue == FontStyles.Italic);
2120
italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (
FontStyle
)fontStylePropertyValue == FontStyles.Italic);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
313
case 219: t = () => typeof(
FontStyle
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4819
typeof(System.Windows.
FontStyle
),
System\Windows\Markup\KnownTypes.cs (1)
5767
case KnownElements.FontStyle: t = typeof(System.Windows.
FontStyle
); break;
System\Windows\SystemFonts.cs (6)
47
public static
FontStyle
IconFontStyle
126
public static
FontStyle
CaptionFontStyle
206
public static
FontStyle
SmallCaptionFontStyle
285
public static
FontStyle
MenuFontStyle
363
public static
FontStyle
StatusFontStyle
459
public static
FontStyle
MessageFontStyle
WindowsFormsIntegration (5)
System\Windows\Integration\Convert.cs (1)
230
internal static
FontStyle
ToSystemWindowsFontStyle(SD.Font sdFont)
System\Windows\Integration\WindowsFormsHost.cs (2)
633
public SW.
FontStyle
FontStyle
635
get { return (
FontStyle
)GetValue(FontStyleProperty); }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
157
if (value is SW.
FontStyle
)
160
if ((SW.
FontStyle
)value == SW.FontStyles.Normal)