34 references to FontVariants
PresentationCore (6)
MS\Internal\TextFormatting\LineServicesRun.cs (5)
856case FontVariants.Inferior: fontFeatures.Add(new DWriteFontFeature(Text.TextInterface.DWriteFontFeatureTag.ScientificInferiors, 1)); 858case FontVariants.Ordinal: fontFeatures.Add(new DWriteFontFeature(Text.TextInterface.DWriteFontFeatureTag.Ordinals, 1)); 860case FontVariants.Ruby: fontFeatures.Add(new DWriteFontFeature(Text.TextInterface.DWriteFontFeatureTag.RubyNotationForms, 1)); 862case FontVariants.Subscript: fontFeatures.Add(new DWriteFontFeature(Text.TextInterface.DWriteFontFeatureTag.Subscript, 1)); 864case FontVariants.Superscript: fontFeatures.Add(new DWriteFontFeature(Text.TextInterface.DWriteFontFeatureTag.Superscript, 1));
System\Windows\Media\textformatting\TextRunTypographyProperties.cs (1)
234public abstract FontVariants Variants
PresentationFramework (28)
MS\Internal\Text\TypographyProperties.cs (4)
541public override FontVariants Variants 546public void SetVariants(FontVariants value) 759_variant = FontVariants.Normal; 814private FontVariants _variant;
System\Windows\Controls\TextRangeAdaptor.cs (6)
296FontVariants fontVariants = (FontVariants)tp.GetValue(Typography.VariantsProperty); 297return (fontVariants == FontVariants.Subscript); 307FontVariants fontVariants = (FontVariants)tp.GetValue(Typography.VariantsProperty); 308return (fontVariants == FontVariants.Superscript);
System\windows\Documents\TextEditorCharacters.cs (10)
246FontVariants fontVariants = (FontVariants)((TextSelection)This.Selection).GetCurrentValue(Typography.VariantsProperty); 248fontVariants = fontVariants == FontVariants.Subscript ? FontVariants.Normal : FontVariants.Subscript; 265FontVariants fontVariants = (FontVariants)((TextSelection)This.Selection).GetCurrentValue(Typography.VariantsProperty); 267fontVariants = fontVariants == FontVariants.Superscript ? FontVariants.Normal : FontVariants.Superscript;
System\Windows\Documents\TextElement.cs (1)
1078group.SetVariants((FontVariants) element.GetValue(Typography.VariantsProperty));
System\Windows\Documents\Typography.cs (7)
291public FontVariants Variants 293get { return (FontVariants) _owner.GetValue(VariantsProperty); } 1247public static void SetVariants(DependencyObject element, FontVariants value) 1260public static FontVariants GetVariants(DependencyObject element) 1264return (FontVariants)element.GetValue(VariantsProperty); 1823typeof(FontVariants), 1826FontVariants.Normal,