32 references to NumberContext
PresentationCore (32)
MS\Internal\TextFormatting\TextStore.cs (32)
71private NumberContext _numberContext; // cached number context for contextual digit substitution 1177private NumberContext GetNumberContext(TextModifierScope scope) 1181NumberContext cachedNumberContext = _numberContext; 1194cachedNumberContext = NumberContext.Unknown; 1245NumberContext.Arabic | NumberContext.FromLetter : 1246NumberContext.European | NumberContext.FromLetter; 1253NumberContext.Arabic | NumberContext.FromFlowDirection : 1254NumberContext.European | NumberContext.FromFlowDirection; 1267if (limitCp <= firstCp && (cachedNumberContext & NumberContext.FromLetter) != 0) 1275NumberContext.Arabic | NumberContext.FromFlowDirection : 1276NumberContext.European | NumberContext.FromFlowDirection; 1320NumberContext numberContext = NumberContext.Unknown; 1338NumberContext previousNumberContext = NumberContext.Unknown; 1374if (numberContext == NumberContext.Unknown) 1382if ((previousNumberContext & NumberContext.Mask) != (numberContext & NumberContext.Mask)) 1385if (previousNumberContext != NumberContext.Unknown) 1404digitCulture = (numberContext & NumberContext.Mask) == NumberContext.Arabic ? 1416NumberContext.Arabic | NumberContext.FromLetter : 1417NumberContext.European | NumberContext.FromLetter; 1444if (numberContext != NumberContext.Unknown)