1 instantiation of CharacterMetrics
PresentationCore (1)
MS\Internal\FontFace\CompositeFontParser.cs (1)
740new CharacterMetrics(metrics)
58 references to CharacterMetrics
PresentationCore (57)
System\Windows\Media\CharacterMetrics.cs (2)
276CharacterMetrics other = obj as CharacterMetrics;
System\Windows\Media\CharacterMetricsDictionary.cs (54)
15public sealed class CharacterMetricsDictionary : IDictionary<int, CharacterMetrics>, SC.IDictionary 30public IEnumerator<KeyValuePair<int, CharacterMetrics>> GetEnumerator() 50public bool TryGetValue(int key, out CharacterMetrics value) 87public void Add(KeyValuePair<int, CharacterMetrics> item) 109public bool Contains(KeyValuePair<int, CharacterMetrics> item) 121public void CopyTo(KeyValuePair<int, CharacterMetrics>[] array, int index) 130CharacterMetrics[][] pageTable = _pageTable; 137CharacterMetrics[] page = pageTable[i]; 142CharacterMetrics metrics = page[j]; 148array[k++] = new KeyValuePair<int, CharacterMetrics>( 163public bool Remove(KeyValuePair<int, CharacterMetrics> item) 194foreach (KeyValuePair<int, CharacterMetrics> item in this) 210foreach (KeyValuePair<int, CharacterMetrics> item in this) 224public void Add(int key, CharacterMetrics value) 248public CharacterMetrics this[int key] 267public ICollection<CharacterMetrics> Values 328private CharacterMetrics[][] _pageTable = null; 331internal CharacterMetrics[] GetPage(int i) 336private CharacterMetrics[] GetPageFromUnicodeScalar(int unicodeScalar) 340CharacterMetrics[] page; 347_pageTable[i] = page = new CharacterMetrics[PageSize]; 352_pageTable = new CharacterMetrics[PageCount][]; 353_pageTable[i] = page = new CharacterMetrics[PageSize]; 359private void SetValue(int key, CharacterMetrics value, bool failIfExists) 366CharacterMetrics[] page = GetPageFromUnicodeScalar(key); 376internal CharacterMetrics GetValue(int key) 378CharacterMetrics metrics = null; 382CharacterMetrics[] page = _pageTable[key >> PageShift]; 390private bool RemoveValue(int key, CharacterMetrics value) 394CharacterMetrics[] page = _pageTable[key >> PageShift]; 398CharacterMetrics metrics = page[i]; 411private CharacterMetrics GetNextValue(ref int unicodeScalar) 413CharacterMetrics[][] pageTable = _pageTable; 420CharacterMetrics[] page = pageTable[i]; 425CharacterMetrics metrics = page[j]; 446CharacterMetrics[][] pageTable = _pageTable; 451CharacterMetrics[] page = pageTable[i]; 470foreach (KeyValuePair<int, CharacterMetrics> pair in this) 477private CharacterMetrics[] GetValues() 479CharacterMetrics[] result = new CharacterMetrics[Count]; 481foreach (KeyValuePair<int, CharacterMetrics> pair in this) 516private CharacterMetrics ConvertValue(object value) 518CharacterMetrics metrics = value as CharacterMetrics; 524throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType())); 527private struct Enumerator : SC.IDictionaryEnumerator, IEnumerator<KeyValuePair<int, CharacterMetrics>> 531private CharacterMetrics _value; 564KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry(); 570public KeyValuePair<int, CharacterMetrics> Current 574return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value); 578private KeyValuePair<int, CharacterMetrics> GetCurrentEntry() 581return new KeyValuePair<int, CharacterMetrics>(_unicodeScalar, _value); 590KeyValuePair<int, CharacterMetrics> entry = GetCurrentEntry();
System\Windows\Media\FamilyTypeface.cs (1)
296CharacterMetrics metrics = _characterMetrics.GetValue(characterString[i]);
PresentationFramework (1)
HashHelper.cs (1)
13typeof(System.Windows.Media.CharacterMetrics), // bug 1612093