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