8 references to WindowsFontCache
System.Windows.Forms (8)
misc\GDI\WindowsGraphicsCacheManager.cs (8)
155
while( count <
WindowsFontCache
.Count )
157
if (
WindowsFontCache
[index].Key.Equals(font)) // don't do shallow comparison, we could miss cloned fonts.
162
Debug.Assert(
WindowsFontCache
[index].Value.Hfont != IntPtr.Zero, "Cached WindowsFont was disposed, enable GDI_FINALIZATION_WATCH to track who did it!");
164
WindowsFont wf =
WindowsFontCache
[index].Value;
192
if (
WindowsFontCache
.Count == CacheSize) // No more room, update current index.
212
wfont =
WindowsFontCache
[loopIndex].Value;
225
WindowsFontCache
[currentIndex] = newEntry;
254
WindowsFontCache
.Add(newEntry);