39 references to NumberSubstitutionMethod
PresentationCore (34)
MS\Internal\Shaping\TypefaceMap.cs (1)
112
NumberSubstitutionMethod
numberSubstitutionMethod = DigitState.GetResolvedSubstitutionMethod(textRunProperties, digitCulture, out ignoreUserOverride);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1558
internal static CultureInfo GetNumberCulture(TextRunProperties properties, out
NumberSubstitutionMethod
method)
1563
method =
NumberSubstitutionMethod
.AsCulture;
MS\Internal\TextFormatting\NumberSubstitution.cs (21)
57
internal static
NumberSubstitutionMethod
GetResolvedSubstitutionMethod(TextRunProperties properties, CultureInfo digitCulture, out bool ignoreUserOverride)
60
NumberSubstitutionMethod
resolvedMethod =
NumberSubstitutionMethod
.European;
64
NumberSubstitutionMethod
method;
70
if (method ==
NumberSubstitutionMethod
.AsCulture)
75
method =
NumberSubstitutionMethod
.Context;
78
method =
NumberSubstitutionMethod
.NativeNational;
81
method =
NumberSubstitutionMethod
.European;
88
if (resolvedMethod ==
NumberSubstitutionMethod
.Context)
90
resolvedMethod =
NumberSubstitutionMethod
.Traditional;
106
NumberSubstitutionMethod
method;
120
private static CultureInfo GetNumberCulture(TextRunProperties properties, out
NumberSubstitutionMethod
method, out bool ignoreUserOverride)
126
method =
NumberSubstitutionMethod
.AsCulture;
148
private CultureInfo GetDigitCulture(CultureInfo numberCulture,
NumberSubstitutionMethod
method, out bool contextual)
157
if (method ==
NumberSubstitutionMethod
.AsCulture)
162
method =
NumberSubstitutionMethod
.Context;
166
method =
NumberSubstitutionMethod
.NativeNational;
178
case
NumberSubstitutionMethod
.Context:
190
case
NumberSubstitutionMethod
.NativeNational:
201
case
NumberSubstitutionMethod
.Traditional:
538
private
NumberSubstitutionMethod
_lastMethod;
System\Windows\Media\textformatting\NumberSubstitution.cs (10)
41
_substitution =
NumberSubstitutionMethod
.AsCulture;
53
NumberSubstitutionMethod
substitution)
134
public
NumberSubstitutionMethod
Substitution
140
if ((uint)value > (uint)
NumberSubstitutionMethod
.Traditional)
141
throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(
NumberSubstitutionMethod
));
217
typeof(
NumberSubstitutionMethod
),
223
public static void SetSubstitution(DependencyObject target,
NumberSubstitutionMethod
value)
234
public static
NumberSubstitutionMethod
GetSubstitution(DependencyObject target)
238
return (
NumberSubstitutionMethod
)(target.GetValue(SubstitutionProperty));
277
private
NumberSubstitutionMethod
_substitution;
PresentationFramework (5)
MS\Internal\Text\DynamicPropertyReader.cs (1)
329
numberSubstitution.Substitution = (
NumberSubstitutionMethod
)element.GetValue(NumberSubstitution.SubstitutionProperty);
System\Windows\FrameworkContentElement.cs (2)
97
NumberSubstitution.SubstitutionProperty.OverrideMetadata(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(
NumberSubstitutionMethod
.AsCulture, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, numberSubstitutionChanged));
120
NumberSubstitutionMethod
.AsCulture
System\Windows\FrameworkElement.cs (2)
2404
NumberSubstitution.SubstitutionProperty.OverrideMetadata(_typeofThis, new FrameworkPropertyMetadata(
NumberSubstitutionMethod
.AsCulture, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, numberSubstitutionChanged));
2450
NumberSubstitutionMethod
.AsCulture