39 references to NumberSubstitutionMethod
PresentationCore (34)
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (1)
119
NumberSubstitutionMethod
numberSubstitutionMethod = DigitState.GetResolvedSubstitutionMethod(textRunProperties, digitCulture, out ignoreUserOverride);
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1658
internal static CultureInfo GetNumberCulture(TextRunProperties properties, out
NumberSubstitutionMethod
method)
1663
method =
NumberSubstitutionMethod
.AsCulture;
Core\CSharp\MS\Internal\TextFormatting\NumberSubstitution.cs (21)
53
internal static
NumberSubstitutionMethod
GetResolvedSubstitutionMethod(TextRunProperties properties, CultureInfo digitCulture, out bool ignoreUserOverride)
56
NumberSubstitutionMethod
resolvedMethod =
NumberSubstitutionMethod
.European;
60
NumberSubstitutionMethod
method;
66
if (method ==
NumberSubstitutionMethod
.AsCulture)
71
method =
NumberSubstitutionMethod
.Context;
74
method =
NumberSubstitutionMethod
.NativeNational;
77
method =
NumberSubstitutionMethod
.European;
84
if (resolvedMethod ==
NumberSubstitutionMethod
.Context)
86
resolvedMethod =
NumberSubstitutionMethod
.Traditional;
102
NumberSubstitutionMethod
method;
116
private static CultureInfo GetNumberCulture(TextRunProperties properties, out
NumberSubstitutionMethod
method, out bool ignoreUserOverride)
122
method =
NumberSubstitutionMethod
.AsCulture;
144
private CultureInfo GetDigitCulture(CultureInfo numberCulture,
NumberSubstitutionMethod
method, out bool contextual)
153
if (method ==
NumberSubstitutionMethod
.AsCulture)
158
method =
NumberSubstitutionMethod
.Context;
162
method =
NumberSubstitutionMethod
.NativeNational;
174
case
NumberSubstitutionMethod
.Context:
186
case
NumberSubstitutionMethod
.NativeNational:
197
case
NumberSubstitutionMethod
.Traditional:
537
private
NumberSubstitutionMethod
_lastMethod;
Core\CSharp\System\Windows\Media\TextFormatting\NumberSubstitution.cs (10)
44
_substitution =
NumberSubstitutionMethod
.AsCulture;
56
NumberSubstitutionMethod
substitution)
137
public
NumberSubstitutionMethod
Substitution
143
if ((uint)value > (uint)
NumberSubstitutionMethod
.Traditional)
144
throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(
NumberSubstitutionMethod
));
232
typeof(
NumberSubstitutionMethod
),
238
public static void SetSubstitution(DependencyObject target,
NumberSubstitutionMethod
value)
252
public static
NumberSubstitutionMethod
GetSubstitution(DependencyObject target)
259
return (
NumberSubstitutionMethod
)(target.GetValue(SubstitutionProperty));
298
private
NumberSubstitutionMethod
_substitution;
PresentationFramework (5)
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
332
numberSubstitution.Substitution = (
NumberSubstitutionMethod
)element.GetValue(NumberSubstitution.SubstitutionProperty);
src\Framework\System\Windows\FrameworkContentElement.cs (2)
94
NumberSubstitution.SubstitutionProperty.OverrideMetadata(typeof(FrameworkContentElement), new FrameworkPropertyMetadata(
NumberSubstitutionMethod
.AsCulture, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, numberSubstitutionChanged));
117
NumberSubstitutionMethod
.AsCulture
src\Framework\System\Windows\FrameworkElement.cs (2)
2401
NumberSubstitution.SubstitutionProperty.OverrideMetadata(_typeofThis, new FrameworkPropertyMetadata(
NumberSubstitutionMethod
.AsCulture, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, numberSubstitutionChanged));
2447
NumberSubstitutionMethod
.AsCulture