32 references to NumberContext
PresentationCore (32)
MS\Internal\TextFormatting\TextStore.cs (32)
56private NumberContext _numberContext; // cached number context for contextual digit substitution 1162private NumberContext GetNumberContext(TextModifierScope scope) 1166NumberContext cachedNumberContext = _numberContext; 1179cachedNumberContext = NumberContext.Unknown; 1230NumberContext.Arabic | NumberContext.FromLetter : 1231NumberContext.European | NumberContext.FromLetter; 1238NumberContext.Arabic | NumberContext.FromFlowDirection : 1239NumberContext.European | NumberContext.FromFlowDirection; 1252if (limitCp <= firstCp && (cachedNumberContext & NumberContext.FromLetter) != 0) 1260NumberContext.Arabic | NumberContext.FromFlowDirection : 1261NumberContext.European | NumberContext.FromFlowDirection; 1305NumberContext numberContext = NumberContext.Unknown; 1323NumberContext previousNumberContext = NumberContext.Unknown; 1359if (numberContext == NumberContext.Unknown) 1367if ((previousNumberContext & NumberContext.Mask) != (numberContext & NumberContext.Mask)) 1370if (previousNumberContext != NumberContext.Unknown) 1389digitCulture = (numberContext & NumberContext.Mask) == NumberContext.Arabic ? 1401NumberContext.Arabic | NumberContext.FromLetter : 1402NumberContext.European | NumberContext.FromLetter; 1429if (numberContext != NumberContext.Unknown)