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