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