1 instantiation of CharacterMetrics
PresentationCore (1)
MS\Internal\FontFace\CompositeFontParser.cs (1)
752
new
CharacterMetrics
(metrics)
58 references to CharacterMetrics
PresentationCore (58)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\HashHelper.cs (1)
40
typeof(System.Windows.Media.
CharacterMetrics
), // bug 1612093
System\Windows\Media\CharacterMetrics.cs (2)
285
CharacterMetrics
other = obj as
CharacterMetrics
;
System\Windows\Media\CharacterMetricsDictionary.cs (54)
26
public sealed class CharacterMetricsDictionary : IDictionary<int,
CharacterMetrics
>, SC.IDictionary
41
public IEnumerator<KeyValuePair<int,
CharacterMetrics
>> GetEnumerator()
61
public bool TryGetValue(int key, out
CharacterMetrics
value)
98
public void Add(KeyValuePair<int,
CharacterMetrics
> item)
120
public bool Contains(KeyValuePair<int,
CharacterMetrics
> item)
132
public void CopyTo(KeyValuePair<int,
CharacterMetrics
>[] array, int index)
141
CharacterMetrics
[][] pageTable = _pageTable;
148
CharacterMetrics
[] page = pageTable[i];
153
CharacterMetrics
metrics = page[j];
159
array[k++] = new KeyValuePair<int,
CharacterMetrics
>(
174
public bool Remove(KeyValuePair<int,
CharacterMetrics
> item)
205
foreach (KeyValuePair<int,
CharacterMetrics
> item in this)
221
foreach (KeyValuePair<int,
CharacterMetrics
> item in this)
235
public void Add(int key,
CharacterMetrics
value)
259
public
CharacterMetrics
this[int key]
278
public ICollection<
CharacterMetrics
> Values
339
private
CharacterMetrics
[][] _pageTable = null;
342
internal
CharacterMetrics
[] GetPage(int i)
347
private
CharacterMetrics
[] GetPageFromUnicodeScalar(int unicodeScalar)
351
CharacterMetrics
[] page;
358
_pageTable[i] = page = new
CharacterMetrics
[PageSize];
363
_pageTable = new
CharacterMetrics
[PageCount][];
364
_pageTable[i] = page = new
CharacterMetrics
[PageSize];
370
private void SetValue(int key,
CharacterMetrics
value, bool failIfExists)
377
CharacterMetrics
[] page = GetPageFromUnicodeScalar(key);
387
internal
CharacterMetrics
GetValue(int key)
389
CharacterMetrics
metrics = null;
393
CharacterMetrics
[] page = _pageTable[key >> PageShift];
401
private bool RemoveValue(int key,
CharacterMetrics
value)
405
CharacterMetrics
[] page = _pageTable[key >> PageShift];
409
CharacterMetrics
metrics = page[i];
422
private
CharacterMetrics
GetNextValue(ref int unicodeScalar)
424
CharacterMetrics
[][] pageTable = _pageTable;
431
CharacterMetrics
[] page = pageTable[i];
436
CharacterMetrics
metrics = page[j];
457
CharacterMetrics
[][] pageTable = _pageTable;
462
CharacterMetrics
[] page = pageTable[i];
481
foreach (KeyValuePair<int,
CharacterMetrics
> pair in this)
488
private
CharacterMetrics
[] GetValues()
490
CharacterMetrics
[] result = new
CharacterMetrics
[Count];
492
foreach (KeyValuePair<int,
CharacterMetrics
> pair in this)
527
private
CharacterMetrics
ConvertValue(object value)
529
CharacterMetrics
metrics = value as
CharacterMetrics
;
535
throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(
CharacterMetrics
), value.GetType()));
538
private struct Enumerator : SC.IDictionaryEnumerator, IEnumerator<KeyValuePair<int,
CharacterMetrics
>>
542
private
CharacterMetrics
_value;
575
KeyValuePair<int,
CharacterMetrics
> entry = GetCurrentEntry();
581
public KeyValuePair<int,
CharacterMetrics
> Current
585
return new KeyValuePair<int,
CharacterMetrics
>(_unicodeScalar, _value);
589
private KeyValuePair<int,
CharacterMetrics
> GetCurrentEntry()
592
return new KeyValuePair<int,
CharacterMetrics
>(_unicodeScalar, _value);
601
KeyValuePair<int,
CharacterMetrics
> entry = GetCurrentEntry();
System\Windows\Media\FamilyTypeface.cs (1)
312
CharacterMetrics
metrics = _characterMetrics.GetValue(characterString[i]);