1 instantiation of CharacterMetrics
PresentationCore (1)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (1)
760
new
CharacterMetrics
(metrics)
58 references to CharacterMetrics
PresentationCore (58)
Core\CSharp\System\Windows\Media\CharacterMetrics.cs (2)
289
CharacterMetrics
other = obj as
CharacterMetrics
;
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (54)
29
public sealed class CharacterMetricsDictionary : IDictionary<int,
CharacterMetrics
>, SC.IDictionary
44
public IEnumerator<KeyValuePair<int,
CharacterMetrics
>> GetEnumerator()
64
public bool TryGetValue(int key, out
CharacterMetrics
value)
101
public void Add(KeyValuePair<int,
CharacterMetrics
> item)
123
public bool Contains(KeyValuePair<int,
CharacterMetrics
> item)
135
public void CopyTo(KeyValuePair<int,
CharacterMetrics
>[] array, int index)
146
CharacterMetrics
[][] pageTable = _pageTable;
153
CharacterMetrics
[] page = pageTable[i];
158
CharacterMetrics
metrics = page[j];
164
array[k++] = new KeyValuePair<int,
CharacterMetrics
>(
179
public bool Remove(KeyValuePair<int,
CharacterMetrics
> item)
212
foreach (KeyValuePair<int,
CharacterMetrics
> item in this)
228
foreach (KeyValuePair<int,
CharacterMetrics
> item in this)
242
public void Add(int key,
CharacterMetrics
value)
266
public
CharacterMetrics
this[int key]
285
public ICollection<
CharacterMetrics
> Values
346
private
CharacterMetrics
[][] _pageTable = null;
349
internal
CharacterMetrics
[] GetPage(int i)
354
private
CharacterMetrics
[] GetPageFromUnicodeScalar(int unicodeScalar)
358
CharacterMetrics
[] page;
365
_pageTable[i] = page = new
CharacterMetrics
[PageSize];
370
_pageTable = new
CharacterMetrics
[PageCount][];
371
_pageTable[i] = page = new
CharacterMetrics
[PageSize];
377
private void SetValue(int key,
CharacterMetrics
value, bool failIfExists)
385
CharacterMetrics
[] page = GetPageFromUnicodeScalar(key);
395
internal
CharacterMetrics
GetValue(int key)
397
CharacterMetrics
metrics = null;
401
CharacterMetrics
[] page = _pageTable[key >> PageShift];
409
private bool RemoveValue(int key,
CharacterMetrics
value)
413
CharacterMetrics
[] page = _pageTable[key >> PageShift];
417
CharacterMetrics
metrics = page[i];
430
private
CharacterMetrics
GetNextValue(ref int unicodeScalar)
432
CharacterMetrics
[][] pageTable = _pageTable;
439
CharacterMetrics
[] page = pageTable[i];
444
CharacterMetrics
metrics = page[j];
465
CharacterMetrics
[][] pageTable = _pageTable;
470
CharacterMetrics
[] page = pageTable[i];
489
foreach (KeyValuePair<int,
CharacterMetrics
> pair in this)
496
private
CharacterMetrics
[] GetValues()
498
CharacterMetrics
[] result = new
CharacterMetrics
[Count];
500
foreach (KeyValuePair<int,
CharacterMetrics
> pair in this)
536
private
CharacterMetrics
ConvertValue(object value)
538
CharacterMetrics
metrics = value as
CharacterMetrics
;
543
throw new ArgumentException(SR.Get(SRID.CannotConvertType, typeof(
CharacterMetrics
), value.GetType()));
548
private struct Enumerator : SC.IDictionaryEnumerator, IEnumerator<KeyValuePair<int,
CharacterMetrics
>>
552
private
CharacterMetrics
_value;
585
KeyValuePair<int,
CharacterMetrics
> entry = GetCurrentEntry();
591
public KeyValuePair<int,
CharacterMetrics
> Current
595
return new KeyValuePair<int,
CharacterMetrics
>(_unicodeScalar, _value);
599
private KeyValuePair<int,
CharacterMetrics
> GetCurrentEntry()
602
return new KeyValuePair<int,
CharacterMetrics
>(_unicodeScalar, _value);
611
KeyValuePair<int,
CharacterMetrics
> entry = GetCurrentEntry();
Core\CSharp\System\Windows\Media\FamilyTypeface.cs (1)
319
CharacterMetrics
metrics = _characterMetrics.GetValue(characterString[i]);
Shared\MS\Internal\HashHelper.cs (1)
38
typeof(System.Windows.Media.
CharacterMetrics
), // bug 1612093