11 instantiations of FontStyle
PresentationCore (9)
MS\Internal\FontCache\FamilyCollection.cs (1)
405
fontStyle = new
FontStyle
((int)font.Style);
MS\Internal\FontFace\CompositeFontParser.cs (1)
637
FontStyle fontStyle = new
FontStyle
();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
215
_style = new MatchingStyle(new
FontStyle
((int)face.Style), new FontWeight((int)face.Weight), new FontStretch((int)face.Stretch));
MS\Internal\FontFace\TypefaceCollection.cs (1)
155
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)
68
FontStyle fontStyle = new
FontStyle
();
System\Windows\FontStyles.cs (3)
19
public static FontStyle Normal { get { return new
FontStyle
(0); } }
24
public static FontStyle Oblique { get { return new
FontStyle
(1); } }
29
public static FontStyle Italic { get { return new
FontStyle
(2); } }
System\Windows\Media\GlyphTypeface.cs (1)
564
return new
FontStyle
((int)_font.Style);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4821
DefaultConstructor = delegate () { return new System.Windows.
FontStyle
(); },
System\Windows\Markup\KnownTypes.cs (1)
1272
case KnownElements.FontStyle: o = new System.Windows.
FontStyle
(); break;
107 references to FontStyle
PresentationCore (58)
MS\Internal\FontCache\CachedTypeface.cs (3)
22
private
FontStyle
_canonicalStyle;
30
FontStyle
canonicalStyle,
49
internal
FontStyle
CanonicalStyle
MS\Internal\FontCache\FamilyCollection.cs (1)
325
ref
FontStyle
fontStyle,
MS\Internal\FontFace\CompositeFontParser.cs (1)
637
FontStyle
fontStyle = new FontStyle();
MS\Internal\FontFace\FontDifferentiator.cs (2)
24
FontStyle
style,
37
FontStyle
fontStyle,
MS\Internal\FontFace\IFontFamily.cs (2)
55
FontStyle
style,
64
IDeviceFont GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch);
MS\Internal\FontFace\MatchingStyle.cs (1)
30
FontStyle
style,
MS\Internal\FontFace\PhysicalFontFamily.cs (4)
68
FontStyle
style,
80
IDeviceFont IFontFamily.GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch)
111
FontStyle
style,
136
FontStyle
style,
MS\Internal\Shaping\CompositeFontFamily.cs (5)
193
FontStyle
style,
213
IDeviceFont IFontFamily.GetDeviceFont(
FontStyle
style, FontWeight weight, FontStretch stretch)
378
FontStyle
style,
397
FontStyle
style,
431
FontStyle
style,
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (2)
31
private
FontStyle
_style;
55
FontStyle
style,
MS\Internal\Shaping\TypefaceMap.cs (5)
32
private
FontStyle
_canonicalStyle;
47
FontStyle
canonicalStyle,
485
FontStyle
canonicalStyle,
868
FontStyle
canonicalStyle = _canonicalStyle;
977
FontStyle
canonicalStyle,
System\Windows\FontStyle.cs (7)
34
public static bool operator ==(
FontStyle
left,
FontStyle
right)
46
public static bool operator !=(
FontStyle
left,
FontStyle
right)
57
public bool Equals(
FontStyle
obj)
70
if (!(obj is
FontStyle
))
72
return this == (
FontStyle
)obj;
System\Windows\FontStyleConverter.cs (6)
68
FontStyle
fontStyle = new FontStyle();
89
if (destinationType != null && value is
FontStyle
)
93
ConstructorInfo ci = typeof(
FontStyle
).GetConstructor(new Type[]{typeof(int)});
94
int c = ((
FontStyle
)value).GetStyleForInternalConstruction();
99
FontStyle
c = (
FontStyle
)value;
System\Windows\FontStyles.cs (4)
19
public static
FontStyle
Normal { get { return new FontStyle(0); } }
24
public static
FontStyle
Oblique { get { return new FontStyle(1); } }
29
public static
FontStyle
Italic { get { return new FontStyle(2); } }
31
internal static bool FontStyleStringToKnownStyle(string s, IFormatProvider provider, ref
FontStyle
fontStyle)
System\Windows\Media\FamilyTypeface.cs (2)
44
public
FontStyle
Style
313
private
FontStyle
_style;
System\Windows\Media\FontFamily.cs (4)
327
FontStyle
style = FontStyles.Normal;
409
FontStyle
style = FontStyles.Normal;
438
ref
FontStyle
style,
476
ref
FontStyle
style,
System\Windows\Media\FormattedText.cs (2)
652
public void SetFontStyle(
FontStyle
style)
663
public void SetFontStyle(
FontStyle
style, int startIndex, int count)
System\Windows\Media\GlyphTypeface.cs (1)
559
public
FontStyle
Style
System\Windows\Media\Typeface.cs (6)
31
private
FontStyle
_style;
68
FontStyle
style,
93
FontStyle
style,
131
public
FontStyle
Style
311
internal
FontStyle
CanonicalStyle
731
FontStyle
canonicalStyle = _style;
PresentationFramework (44)
MS\Internal\Text\DynamicPropertyReader.cs (4)
40
FontStyle
fontStyle = (
FontStyle
) element.GetValue(TextElement.FontStyleProperty);
51
FontStyle
fontStyle = (
FontStyle
) element.GetValue(TextElement.FontStyleProperty);
System\Windows\Controls\AccessText.cs (2)
176
public
FontStyle
FontStyle
178
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\Windows\Controls\Control.cs (2)
243
public
FontStyle
FontStyle
245
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\Windows\Controls\DataGridTextColumn.cs (2)
349
public
FontStyle
FontStyle
351
get { return (
FontStyle
)GetValue(FontStyleProperty); }
System\Windows\Controls\StickyNote.cs (3)
379
typeof(
FontStyle
), typeof(StickyNoteControl),
387
public
FontStyle
CaptionFontStyle
389
get { return (
FontStyle
) GetValue(CaptionFontStyleProperty); }
System\Windows\Controls\TextBlock.cs (5)
665
public
FontStyle
FontStyle
667
get { return (
FontStyle
) GetValue(FontStyleProperty); }
676
public static void SetFontStyle(DependencyObject element,
FontStyle
value)
687
public static
FontStyle
GetFontStyle(DependencyObject element)
691
return (
FontStyle
)element.GetValue(FontStyleProperty);
System\Windows\Controls\TextRangeAdaptor.cs (2)
268
FontStyle
style = (
FontStyle
)tp.GetValue(TextElement.FontStyleProperty);
System\Windows\Documents\FixedSOMTextRun.cs (2)
339
public
FontStyle
FontStyle
427
private
FontStyle
_fontStyle;
System\Windows\Documents\FlowDocument.cs (2)
223
public
FontStyle
FontStyle
225
get { return (
FontStyle
) GetValue(FontStyleProperty); }
System\windows\Documents\TextEditorCharacters.cs (2)
194
FontStyle
fontStyle = (propertyValue != DependencyProperty.UnsetValue && (
FontStyle
)propertyValue == FontStyles.Italic) ? FontStyles.Normal : FontStyles.Italic;
System\windows\Documents\TextEditorDragDrop.cs (1)
413
bool italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (
FontStyle
)fontStylePropertyValue == FontStyles.Italic);
System\Windows\Documents\TextElement.cs (6)
496
typeof(
FontStyle
),
505
public
FontStyle
FontStyle
507
get { return (
FontStyle
) GetValue(FontStyleProperty); }
516
public static void SetFontStyle(DependencyObject element,
FontStyle
value)
527
public static
FontStyle
GetFontStyle(DependencyObject element)
531
return (
FontStyle
)element.GetValue(FontStyleProperty);
System\windows\Documents\TextSelection.cs (2)
2029
italic = (textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (
FontStyle
)fontStylePropertyValue == FontStyles.Italic);
2119
italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.UnsetValue && (
FontStyle
)fontStylePropertyValue == FontStyles.Italic);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
312
case 219: t = () => typeof(
FontStyle
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4818
typeof(System.Windows.
FontStyle
),
System\Windows\Markup\KnownTypes.cs (1)
5766
case KnownElements.FontStyle: t = typeof(System.Windows.
FontStyle
); break;
System\Windows\SystemFonts.cs (6)
46
public static
FontStyle
IconFontStyle
125
public static
FontStyle
CaptionFontStyle
205
public static
FontStyle
SmallCaptionFontStyle
284
public static
FontStyle
MenuFontStyle
362
public static
FontStyle
StatusFontStyle
458
public static
FontStyle
MessageFontStyle
WindowsFormsIntegration (5)
System\Windows\Integration\Convert.cs (1)
229
internal static
FontStyle
ToSystemWindowsFontStyle(SD.Font sdFont)
System\Windows\Integration\WindowsFormsHost.cs (2)
632
public SW.
FontStyle
FontStyle
634
get { return (
FontStyle
)GetValue(FontStyleProperty); }
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
156
if (value is SW.
FontStyle
)
159
if ((SW.
FontStyle
)value == SW.FontStyles.Normal)