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